(CNN)The population of Beijing fell for the first time in two decades, state media reported Wednesday, amid ongoing efforts by the city's government to drive out migrant workers.
Beijing's population dropped by 0.1% in 2017, according to government figures, with 22,000 fewer permanent residents than the previous year.
In total, China's capital has a population of 21.7 million people, more than London and New York combined.
Shanghai, also saw a small population drop in 2017 according to state media, falling by 13,700 to a total of 24.18 million.
It was the first time both city's populations fell in the same year in four decades, state media reported.
The decline was attributed to "multiple factors" including a drop in China's working age population and a slowing of migration from rural provinces.
Beijing's municipal authorities have announced a target of capping the capital's population at 23 million people by 2020, only 1.3 million more than currently live in the city, in a effort to improve living standards and reduce the strain on key services.
In late 2