Yes, you can get back a significant portion of your social insurance contributions when leaving China permanently. The process involves withdrawing your personal pension contributions and the entire balance of your housing fund. Success hinges on a critical sequence: you must first terminate your employment contract and cancel your work and residence permits before applying for the withdrawals. Trying to claim the funds while your permits are still active is the most common reason for rejection, so timing is everything in this leaving China checklist.