The area was devastated in the 17th century by Zhang Xianzhong's rebellion and the area's subsequent Manchu conquest, but recovered to become one of China's most productive areas by the 19th century. During World War II, Chongqing served as the temporary capital of the Republic of China, making it the focus of Japanese bombing. It was one of the last mainland areas captured by the People's Liberation Army during the Chinese Civil War and was divided into four parts from 1949 to 1952, with Chongqing restored two years later.