In 1527, the Mạc dynasty usurped the throne; when the Lê dynasty was restored in 1533, they still had to compete for power with the Mạc dynasty during the period known as Southern and Northern Dynasties.