A. Samad Ahmad's version of the Malay Annals identified Sri Tri Buana who reigned in Palembang and the founder of ancient Singapura as the youngest brother of Sang Sapurba, Sri Nila Utama. In A. Samad Ahmad's version, Sang Sapurba was said to have reigned only in Minangkabau. On the other hand,
Shellabear and
Leyden's versions noted that Sang Nila Utama who reigned in
Bintan and later founded ancient Singapura was the son of Sang Sapurba. The
Misa Melayu and
Silsilah Perak that contains comprehensive genealogical tree of the Sultans of Perak agreed with Shellabear and Leyden's versions, tracing the lineage of the rulers of Perak directly from Sang Sapurba. If these versions of the Malay Annals and the Perak text are to be taken into account, the line of rulers descended from Sang Sapurba should have begun with
Sang Nila Utama who founded the
Kingdom of Singapura in 1299. Four generations of rulers reigned over the island kingdom before the last ruler, known in certain accounts as
Parameswara, fled after a
Majapahit invasion in 1398. In 1400, Parameswara reached the mouth of Bertam River in the
Malay Peninsula, where he established
Melaka Sultanate. During the reign of
Mansur Shah of Melaka (r. 1459–1477), an heir apparent named
Raja Muhammad whose mother was a captured princess of
Pahang, was banished for committing murder and went into exile. He was then proclaimed and installed as
Sultan of Pahang in 1470. The
Portuguese invasion of Melaka in 1511 caused a major split of the royal house when Muzaffar Shah the son of
Mahmud Shah of Melaka (r.1488–1511) was invited by the people of Perak to rule the state. Another son,
Alauddin Riayat Shah II established the
Johor Sultanate to succeed Melaka in 1528. In 1636, the Achehnese installed a prince from Siak to the throne of Perak following the demise of Sultan Salehuddin Shah (r.1630–1635) in exile in Aceh. The new Sultan who reigned as Muzaffar Shah II (r. 1636–1654) also claimed descent from a branch of Sang Sapurba dynasty in Siak. He married Fatima Puteh the elder daughter of Raja Muda of Pahang, Raja 'Abdu'llah by his wife, Putri Perak, who in turn was the granddaughter of Sultan Mansur Shah I of Perak (r. 1549–1577). Earlier in 1623, Pahang was united with the crown of Johor and the rulers from Melaka dynasty continued to reign in the state until 1688, when the Bendahara of Johor effectively consolidated the state as his personal fief. The royal line of Sang Sapurba was finally ended in Johor when
Mahmud Shah II of Johor (r. 1685–1699) was assassinated by Megat Seri Rama, popularly known as Laksamana Bintan, leaving behind no male heir. As a result,
Bendahara Abdul Jalil declared himself the next Sultan of Johor. Upon ascending the throne, the new Sultan Abdul Jalil IV killed all the wives of Sultan Mahmud to avoid the possibility of any future claims to the throne. However, according to the
Hikayat Negeri Johor (Chronicles of the State of Johor) and the Pahang Manuscripts, a wife by the name of Cik Apung the daughter of
Laksamana managed to escape to Minangkabau and gave birth to Raja Kechil. Less than two decades later in 1717, Raja Kechil would assemble a fleet from Minangkabau and succeed temporarily in ousting Sultan Abdul Jalil's successor Sultan Sulaiman and gain the Johor Sultanate, basing his legitimacy on the claim that he was the post-humous son of Sultan Mahmud Shah II. However, Bugis mercenaries that assisted him in this campaign changed sides and he was eventually forced to flee to
Siak, where he founded
Siak Sultanate. ==References==