The Sultans of Selangor are descended from a Bugis dynasty that claim descent from the rulers of Luwu in the southern part of Celebes (today known as Sulawesi). Nobles from this bloodline were involved in the dispute over the Johor-Riau Sultanate in the early 18th century, eventually placing their full support in the cause of Sulaiman Badrul Alam Shah of Johor of the Bendahara dynasty against the claimant to the Malaccan lineage, Raja Kechil.[1] For this reason, the Bendahara rulers of Johor-Riau established close relations with the Bugis nobles, providing them with titles and control over many areas within the empire, including Selangor.