I bought social security for 7 years in Shenzhen and 10 years in Shaoguan. Can I retire in Shenzhen?

You can't. According to official website information, the National Social Security Bureau, as of April 25th, 2023, must have a place for ten years to retire if it wants to pay social security. Otherwise, you can only go back to your domicile and retire. You can't retire in Shenzhen just because you bought social security in Shenzhen for seven years and 10 in Shaoguan. The full name of social security is social insurance, which is a social and economic system that provides income or compensation for people who are unable to work, temporarily unemployed or suffer losses due to health reasons. The main projects include endowment insurance, medical insurance, unemployment insurance, industrial and commercial insurance and maternity insurance.