The Pyu language is an extinct Sino-Tibetan language that was mainly spoken in what is now Myanmar in the first millennium CE. It was the vernacular of the Pyu city-states, which thrived between the second century BCE and the ninth century CE. Its usage declined starting in the late ninth century when the Bamar people of Nanzhao began to overtake the Pyu city-states. The language was still in use, at least in royal inscriptions of the Pagan Kingdom if not in popular vernacular, until the late twelfth century. It became extinct in the thirteenth century, completing the rise of the Burmese language, the language of the Pagan Kingdom, in Upper Burma, the former Pyu realm.