Legality of Container Houses in Shanghai
In Shanghai, transforming containers into houses for use is generally illegal and falls under the category of illegal construction. Here is a detailed analysis:

I. Legal Definition
According to Article 65 of the Urban and Rural Planning Law of the People's Republic of China, any construction within rural and village planning areas without obtaining a rural construction planning permit in accordance with the law, or without adhering to the provisions of the permit, is considered illegal. Container houses modified for residential purposes, equipped with living facilities such as water and electricity supply, installed windows and air conditioners, are explicitly identified as illegal structures. For example, in enforcement cases in Changhai Road Subdistrict and Lvxiang Town, Jinshan District, such modifications have been classified as "unauthorized construction of houses".
II. Core Risks
- Safety Hazards: Container structures often fail to meet building standards for fire prevention and earthquake resistance. Unauthorized electrical wiring and improper use of liquefied gas can easily lead to fires or collapses.
- Encroachment on Public Resources: Occupying public areas such as roads and green spaces affects the city's appearance and normal pedestrian traffic.
- Lack of Management: Modified containers often lead to issues such as environmental dirtiness and disorderly stacking, increasing urban governance costs.
III. Exceptions for Legal Use
Container use may be legal only when the following conditions are met:
- Temporary Building Approval: Submit a filing to the local planning bureau or urban management bureau, specifying the usage period (usually 2 years, renewable).
- Site Compliance: The land nature must meet construction requirements (e.g., having land use rights and not causing disturbances or pollution).
- Government-Encouraged Uses: If used for projects in line with national industrial policies, such as creative parks or cultural tourism homestays, approval from the Shanghai Municipal Government is required.
IV. Enforcement Practices
Several areas in Shanghai have launched special rectification campaigns, for example:
- Xianghua Town in Chongming District took measures such as relocation and dismantling at 26 key locations;
- Shihudang Town in Songjiang District removed illegally constructed containers occupying a public basketball court;
- Changhai Road Subdistrict required construction parties to vacate unapproved residential containers within a specified time.
Recommendation: If container use is necessary, prioritize standard modular products (such as temporary buildings on construction sites) and ensure compliance with quality acceptance standards (e.g., T/CECS 1932-2025 "Quality Acceptance Standard for Container Houses"). Any modification should be consulted with the local planning department in advance to avoid legal risks.




