[1] The current monarch, Sultan Sharafuddin Idris Shah ascended the throne on the death of his father, on 22 November 2001.
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.
[2] 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.
Daeng Chelak, one of the five Bugis warriors, married Sulaiman Badrul Alam Shah's sister, Tengku Mandak.
[2][6] In February 1756, Sulaiman Badrul Alam Shah of Johor, who assumed Selangor is still a part of his territory, offered the Dutch to mine tin ore in Selangor after helping his nephew, Raja Mahmud winning a civil war against his step-brother, Raja Alam.
[15] He gave the power of authority of Klang to Raja Abdullah and Langat to Tunku Kudin of Kedah, both of whom were his sons-in-law, in 1866 and 1868 respectively.
His reign saw the increase in construction of houses, shops, roads, and railways especially in Kuala Lumpur and Klang.
[18] His first son, Tengku Musa Eddin was named the heir apparent in 1920 but he was dismissed in 1934 following the allegation from the then British resident, Theodore Samuel Adams as a gambler.
[11] In January 1942, following the Japanese occupation of Malaya, he was told to surrender his throne to his elder half-brother, Tengku Musa Eddin, whom the Japanese proclaimed as the new Sultan of Selangor, taking the title Sultan Musa Ghiatuddin Riayat Shah.
In the same year, he signed the Malayan Union treaty, albeit under protest, along with the rest of the rulers of Malaya at the time.
[19] In 1950, he demolished Mahkota Puri Palace and built Istana Alam Shah, which is still used as the official residence of the Sultan of Selangor to this day.
[3] Tengku Abdul Aziz, the eldest son of Sultan Hisamuddin took the throne following his father's death.
[24] Later, he commissioned the building of Kota Darul Ehsan arch to commemorate this event and as a border mark between Kuala Lumpur and Selangor.
His Highness shall act in accordance with the advice of state executive council but he may act in his discretion in the performance of the following: appointment of Menteri Besar, the withholding of consent to request the dissolution of the Legislative Assembly, making a request for a meeting of the Conference of Rulers (concern solely about the privileges, position, honours and dignities of Their Highnesses or religious acts, observance or ceremonies), any function as the head of the Islam religion or relating to the custom of the Malays, appointment of an heir (or heirs), consort, regent or the Council of Regency, the appointment of persons to Malay customary ranks, titles, honours, dignities, and the designations of the functions appertaining thereto, and the regulation of royal courts and palaces.
It is the palace where the Sultan carried out his official duties and the site that held formal events involving him such as the coronation ceremony.
[50] Mahkota Puri Palace (now the site of Istana Alam Shah) was built by the British in 1889 for Sultan Alauddin Sulaiman Shah so his administration center is closed to the British colonial administration center in Kuala Lumpur, thus become his official residence.
[51] The title used by the ruling prince is Duli Yang Maha Mulia Sultan dan Yang di-Pertuan Selangor Darul Ehsan Serta Segala Daerah Takluknya or Sultan and Ruler of the State of Selangor Darul Ehsan and all its dependencies, with the style of His Royal Highness.
[52] The heir apparent will use the title Duli Yang Teramat Mulia Raja Muda Selangor Darul Ehsan with the styled of His Royal Highness.