Southern and Northern Dynasties of Annam (Vietnamese: An-nam Nam-Bắc triều), spanning from 1533 to 1592, was a period that occurred during the 16th century in Vietnam. During this period, there existed a Northern Dynasty, established by Mạc Đăng Dung in Đông Đô, and a Southern Dynasty, established by Nguyễn Kim under the name of Lê emperors in Tây Đô.
In early time, the domain of the Southern court was confined in just Thanh Hoa province. After the expedition of Nguyễn Hoàng to reclaim Lê territory in the South from Mạc garrison force, Northern dynasty only controlled the provinces from Thanh Hoa up North. Both dynasties claimed to be the sole legitimate dynasty of Vietnam. The nobles and their clansmen switched side frequently to the extent that loyal retainers such as Prince Mạc Kính Điển were praised even by their foes as rare virtuous men. As lords without land, these nobles and their armies behaved a little or no better than petty thieves, raiding and looting the farmers to feed themselves. This state of chaos brought along the destruction of the countryside and reduced many formerly prosperous cities such as Đông Kinh to poverty.
The two dynasties fought for nearly sixty years, ended in 1592 when the Southern Dynasty defeated the North and recaptured Đông Đô. However, Mac family members had maintained an autonomous rule in Cao Bằng under the protectorate of Chinese Dynasties until 1677.
In the early 16th century, the Later Lê dynasty started weakening. The degenerated Lê dynasty, which endured under six rulers between 1497 and 1527, in the end was no longer able to maintain control over the northern part of the country, much less the new territories to the south. The weakening of the monarchy created a vacuum that the various noble families of the aristocracy were eager to fill. Soon after Lê Chiêu Tông fled south with the Trịnh and the Nguyễn in 1522, Mạc Đăng Dung proclaimed the Emperor's younger brother, Le Xuan, as the new Emperor under the name Lê Cung Hoàng. In reality, the new Emperor had no power. Three years after Mạc's forces killed his older brother, Lê Chiêu Tông, Mạc Đăng Dung ended the fiction that Lê Cung Hoàng actually ruled by killing him in 1527. Mạc Đăng Dung, being a scholar-official who had effectively controlled the Le for a decade, then proclaimed himself the new Emperor of Vietnam in 1527, and established the Mac Dynasty.