The capital of the Jin, Zhongdu, was captured by the Mongols in 1215 at the Battle of Zhongdu. The Jin then moved their capital to Kaifeng, which fell to Mongols in 1233. In 1234, the Jin dynasty collapsed after the siege of Caizhou. The last emperor of the Jin, Emperor Mo, was killed while fighting the Mongols who had breached the walls of the city. Days earlier, his predecessor, Emperor Aizong, committed suicide because he was unable to escape the besieged city.