Pagaruyung (Bahasa Minang: Karajaan Pagaruyuang, other name: Pagaruyung Dārul Qarār), also known as Pagarruyung, Pagar Ruyung and, Malayapura or Malayupura, was a kingdom that once stood in the island of Sumatra and the seat of the Minangkabau kings of Western Sumatra. Modern Pagaruyung is a village in Tanjung Emas subdistrict, Tanah Datar regency, located near the town of Batusangkar, Indonesia. Prior to its establishment, the kingdom was part of Malayapura, a kingdom that the Amoghapasa inscription mentions was ruled by Adityawarman, who established himself as the ruler of Bhumi Malayu in Suwarnabhumi. Also included in Malayapura were the kingdom of Dharmasraya and several other kingdoms or conquests of Adityawarman. The name Pagaruyung derives from a Minangkabauan name for the Nibung or Ruyung tree, but it can also be referred to the inscription of the mohor stamp of Sultan Tangkal Alam Bagagar of Pagaruyung, which is in Jawi script in the inner circle which reads (Jawi: سلطان توڠݢل عالم باݢݢر ابن سلطان خليفة الله يڠ ممڤوڽاءي تختا کراجأن دالم نݢري ڤݢرويڠ دار القرار جوهن برداولة ظل الله في العالم; Latin: Sulthān Tunggul Alam Bagagar ibnu Sulthān Khalīfatullāh yang mempunyai tahta kerajaan dalam negeri Pagaruyung Dārul Qarār Johan Berdaulat Zhillullāh fīl 'Ālam). Unfortunately, the mohor stamp does not indicate the year of his reign. The kingdom collapsed during the Padri War, after the signing of an agreement between the Indigenous People (Kaum adat) and the Dutch that put the Kingdom of Pagaruyung under Dutch control. The emergence of Pagaruyung as a Malay kingdom cannot be known with certainty, from the Tambo received by the Minangkabau people there is no dating of any events told, even if considering Adityawarman as the founder of this kingdom, the Tambo itself also does not clearly mention it. However, some of the inscriptions left behind by Adityawarman show that he was indeed the king of the country, specifically Tuan Surawasa, as interpreted from the Batusangkar inscription.