In 1580, Nurhaci became the Jian Zhou general of the Ming dynasty. He unified the Manchu tribe and organised the Eight Banners. In 1616, Nurhaci declared himself Khan (King) and founded the Jin dynasty in Liao Ling. In 1626, Nurhaci led armies to attack Ning Yuan. Unluckily, Nurhaci was wounded by Yuan Chonghuan's Portuguese cannon and he died 2 days later. Huang Taiji, the son of Nurhaci, then succeeded to the throne and became the Khan of the Manchu tribe. In 1643, Huang Taiji was dead, caused by apoplexy. Shunzhi Emperor inherited Huang Taiji's throne. Prince Dorgon became the regent. In 1644, the Manchu armies conquered the north of China. The capital was changed to Beijing. The Ming dynasty was overthrown, though fighting continued until 1683.