Successive Vietnamese royal families from the Đinh, Lê, Lý dynasties and Hoa-Chinese ancestry Trần and Hồ dynasties ruled the kingdom peacefully from 968 to 1407. King Lý Thái Tổ (r. 1009–1028) relocated the Vietnamese capital from Hoa Lư to Hanoi, the center of the Red River Delta in 1010. They practiced elitist marriage alliances between clans and nobles in the country. Mahayana Buddhism became state religion, Vietnamese music instruments, dancing and religious worshipping were influenced by both Cham, Indian and Chinese styles, while Confucianism slowly gained attention and influence. The earliest surviving corpus and text in Vietnamese language dated early 12th century, and surviving "chữ nôm" script inscriptions dated early 13th century.