Foreigners who plan to stay in China for more than six months are required to apply for a residence permit. The permit allows the holder to enter and exit China multiple times during the validity period without the need for a visa. The application process involves submitting the required documents, completing the biometric data collection, and attending an in-person appointment at the local Public Security Bureau.