Yes, you can get a social insurance refund when leaving China, but it only covers specific portions of your contributions. The process involves getting key documents from your employer and submitting them to the correct government offices before your final departure. The refundable parts are typically the employee’s contribution to the pension fund and the full amount in your housing fund. Other deductions like medical and unemployment insurance are generally not returned. Proactive planning is essential, as this cannot be done from outside of China.