It was chosen as the capital and called Jinling () during the Southern Tang (937–976), which succeeded the state of Yang Wu. It was renamed Jiangning () in the Northern Song and renamed Jiankang in the Southern Song. Jiankang's textile industry burgeoned and thrived during the Song despite the constant threat of foreign invasions from the north by the Jurchen-led Jin dynasty. The court of Da Chu, a short-lived puppet state established by the Jurchens, and the court of Song were once in the city.