寶安縣
Shenzhen was originally Bao'an County. On 5 March 1979, the State Council of the People's Republic of China dissolved the County and set up the city of Shenzhen in its place initially with six districts: Luohu (), Nantou (), Songgang (), Longhua (), Longgang (), and Kuiyong (), with the seat based in Luohu. In October 1981, Bao'an County was re-established, with its region now based outside Shenzhen. In June 1983, the districts were dissolved and re-established instead as five management areas (): Shekou (; south-west Shenzhen), Nantou (; west Shenzhen), Shangbu (; central Shenzhen), Luohu (; east-central Shenzhen), and Shatoujiao (; far-east Shenzhen). To enforce law and order in the city, the Shenzhen government erected a border known as the second line (), which consisted of barbed wire and checkpoints between the city and the rest of China. Initially, the border control was relatively strict, requiring non-Shenzhen citizens to obtain special permissions for entering. Over the years, border controls have gradually weakened, and permission requirement has been abandoned.