 During the time of Langkasuka, Srivijaya and Ligor, Pahang was one of the outlying dependencies.In the 15th century, the Pahang Sultanate became an autonomous kingdom within the Melaka Sultanate.Pahang entered into a dynastic union with Johor Empire in the early 17th century and later emerged as an autonomous kingdom in the late 18th century.