The history of Myanmar (Burmese: မြန်မာ့သမိုင်း Myănma thămāing) covers the period from the time of first-known human settlements 13,000 years ago to the present day. Native to three imperial dynasties of South-east asia, the history of Myanmar is intertwined with the socio-political and cultural developments in the region over the past millennium. The earliest inhabitants of recorded history were Tibeto-Burman-speaking people who established an array of Pyu city-states that ranged as far south as Pyay and adopted Theravada Buddhism.
Another group, the Bamar people, entered the upper Irrawaddy valley in the early 9th century. They went on to establish the Pagan Kingdom (1044–1297), the first-ever unification of the Irrawaddy valley and its periphery. The Burmese language and culture slowly came to replace Pyu norms during this period. After the First Mongol invasion of Burma in 1287, several small kingdoms, of which the Kingdom of Ava, the Hanthawaddy kingdom, the Kingdom of Mrauk U and the Shan States were principal powers, came to dominate the landscape, replete with ever-shifting alliances and constant wars. From this time, the history of this region has been characterised by geopolitical struggles between the Bamar ethnic group, and the multitude of smaller ethnic groups surrounding them.