Mạc dynasty
Dai Viet's history is divided into the rule of eight royal dynasties of the Đinh (968–980), Early Lê (980–1009), Lý (1009–1226), Trần (1226–1400), Hồ (1400–1407), and Later Lê (1428–1789); the Mạc dynasty (1527–1677); and the brief Tây Sơn dynasty (1778–1802). Mahayana Buddhism was adopted as state religion during the early period, before its decline in the 15th century. The kingdom is one of many important precursors of the country of Vietnam and the basis for its national historic and cultural identity.