Pagan gradually surrounding states Anawrahta founded the Pagan Kingdom, the first ever unification of the Irrawaddy valley and its periphery. In the 12th and 13th centuries, the Pagan Empire and the Khmer Empire were two main powers in mainland Southeast Asia.The Burmese language and culture gradually became dominant in the upper Irrawaddy valley
Theravada Buddhism slowly began to spread to the village level, although Tantric, Mahayana, Hinduism, and folk religion remained heavily entrenched. Pagan's rulers and wealthy built over 10,000 Buddhist temples in the Pagan capital zone alone. Repeated Mongol invasions (1277–1301) toppled the four-century-old kingdom in 1287.[58]