In accordance with the Exit and Entry Administration Law of the People's Republic of China and the Regulations of the People's Republic of China on the Administration of Exit and Entry Frontier Inspection, among other relevant laws and regulations, foreigners who hold connecting tickets and are traveling on international flights, ships, or trains that transit through China to a third country or region, may stay in China for no more than 24 hours without leaving the port of entry and are exempt from obtaining a visa. Foreigners who hold connecting tickets and are transiting without a visa but need to leave the port of entry for a stay of no more than 24 hours must apply to the exit and entry frontier inspection authorities for a temporary entry permit.
Foreigners applying for a temporary entry permit must submit a valid passport or other international travel documents, connecting tickets, and other materials, fill out a temporary entry card, and undergo questioning by the exit and entry frontier inspection authorities. The exit and entry frontier inspection authorities will not issue a temporary entry permit to foreigners in the following cases: (1) those who fall under the circumstances where entry is prohibited by laws or administrative regulations; (2) those whose passports or other international travel documents have less than three months of validity, or bear a rejection stamp from Chinese visa authorities; (3) those with records of illegal entry, residence, or employment within the last five years; (4) those who have violated accommodation registration regulations within the last two years and whose violations were serious.
If foreigners need to stay beyond the permitted period of the temporary entry permit due to sudden illness, force majeure, or other reasons, they must apply for the appropriate stay documents from the public security exit and entry administration department according to regulations. Foreigners who stay beyond the permitted period of the temporary entry permit without applying for stay documents will be punished according to law by the exit and entry frontier inspection authorities or the public security organs of local people's governments at or above the county level.