| | | | | | | | | | | | | | Raja Opu La Madusalat | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | Opu Ten-ri Burang Daeng Rilaga | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | The 5 Bugis brothers | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | |
| | | | | | Opu Daeng Parani | | Opu Daeng Menambun | | Opu 'Daeng Merewah' Yamtuan Muda Riau (1) 1722-1728 | | Opu Daeng Chelak Yamtuan Muda Riau (2) 1728-1745 | | Opu Daeng Kemasi | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | | | | | | Selangor Sultanate | | | | | | | | | | | | | |
| | | | | | Daeng Kemboja Yamtuan Muda Riau (3) 1745-1777 | | | | | | Salahuddin 'Raja Lumu' (1) r. 1745-1778 | | | | | | Raja Haji Fisabilillah Yamtuan Muda Riau (4) 1777-1784 | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | Raja Ali Yamtuan Muda Riau (5) 1784-1805 | | | | | | Ibrahim (2) r. 1778-1826 | | | | | | Raja Ja'afar Yamtuan Muda Riau (6) 1805-1831 | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | Raja Muhammad Yusuf Yamtuan Muda Riau (10) 1858-1899 | | Muhammad (3) r. 1826-1857 | | Tengku Abdullah d. 1826 | | Raja Abdul Rahman Yamtuan Muda Riau (7) 1831-1844 | | Raja Ali Yamtuan Muda Riau (8) 1844-1857 | | Raja Haji Abdullah Yamtuan Muda Riau (9) 1857-1858 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | Abdul Rahman II Riau-Lingga r. 1883-1911 | | | | | | Abdul Samad (4) r. 1857-1896 | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | Raja Muda Musa b. 1844 d. 1884 | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | Sulaiman (5) r. 1896-1937 | | | | | | | | | | | | |
| | | | | | | | | | Member of Selangor Royal Family | | | | | | | | | | | | | | | | | | | | | |
| | | | |
| | | | | | | | | | Tengku Ampuan Jemaah Tengku Ampuan Selangor r. 1939-1960 Raja Permaisuri Agong II r. 14 April - 1 Sept 1960 | | Hisamuddin (6) r. 1937-1942 r. 1945-1960 YDP Agong II r. 14 April - 1 Sept 1960 | | Musa (7) r. 1942-1945 | | | | | | | | | | |
| |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | |
| | | | | | | | | | | | | | Salahuddin (8) r. 1960-2001 YDP Agong XI r. 1999-2001 | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | Sharafuddin (9) r. 2001-present | | | | | | | | | | | | |
|
| | | | | | | | | | | | | | | | |
|
| | | | | | | | | | | | | | Tengku Amir Shah Raja Muda Selangor |