The Melayu Kingdom (also known as Malayu, Dharmasraya Kingdom or the Jambi Kingdom; Chinese: 末羅瑜國; pinyin: Mòluóyú Guó, Middle Chinese pronunciation mat-la-yu kwok) was a classical Southeast Asian kingdom.
The primary sources for much of the information on the kingdom are the New History of the Tang, and the memoirs of the Chinese Buddhist monk Yijing who visited in 671, and states was "absorbed" by Srivijaya by 692, but had "broken away" by the end of the eleventh century according to Chao Jukua. The exact location of the kingdom is the subject of studies among historians. One theory is that the kingdom was established around present-day Jambi on Sumatra, Indonesia, approximately 300 km north of Palembang. According to this theory, it was founded by ethnic groups in the Batanghari river area and gold traders from the Minangkabau hinterland. The theory is disputed as the geographical location of Jambi contradicts the descriptions by Yijing, who explicitly mentioned that the kingdom is located half-way between Ka-Cha (Kedah) and Bogha (Palembang)".
The origins of the word Melayu ('Malay') are disputed. One theory suggests that it is derived from the Javanese terms melayu or mlayu (to steadily accelerate or to run), to describe the strong current of a river in Sumatra that today bore the name Sungai Melayu ('Melayu river'). The name was later possibly adopted by the Melayu Kingdom, as it is common for people in the region to be known by the name of the river on which they settled. Another theory hold that it originates from the Tamil words Malai and ur meaning "mountain" and "city, land", respectively. An early literary appearance was in Vayu Purana where the word "Malaya Dvipa" (literally "mountainous dvipa") was mentioned, referring to the mountainous terrain of Malay Peninsula. Then, the term "Maleu-Kolon" was used in Geographia by Ptolemy which is believed to have originated from the Sanskrit term malayakolam or malaikurram, referring to a geographical part of Malay Peninsula. In 7th century, the first use of the term for a nation or a kingdom was recorded by Yijing. An inscription on the south wall of the 11th century Brihadeeswarar Temple also made a reference to Malaiyur, a kingdom that had "a strong mountain for its rampart" in Malay Peninsula that fell to the Chola invaders during Rajendra Chola I's campaign.