Foreign nationals in China must register their temporary residence with the Public Security Bureau (PSB) within 24 hours of arriving in the country. This is mandatory for any length of stay. If you are staying in a hotel, the hotel should be able to register you with the PSB. If you are residing somewhere other than a hotel (for example with family or friends), you must register yourself at the nearest police station within 24 hours of your arrival in China, and obtain a ‘Registration Form of Temporary Residence for Visitors’.
If you intend to stay in China longer than 180 days, China’s immigration rules require you to obtain a Residence Permit. All foreigners living in China must register with the Public Security Bureau (PSB) on arrival via their local police station. Resident permit holders should also be aware that you are required to re-register each time you return from a trip abroad.