Sultan Omar Riayat Shah ibni Almarhum Sultan Ahmad Muazzam Shah I (Jawi: سلطان عمر رعايت شاه ابن المرحوم سلطان أحمد معظم شاه ١), also known as Baginda Omar, was both the 6th and 9th sultan of Terengganu, having ascended to the throne twice, first in 1831 and again in 1839 and reigned until 1876.
Baginda means "the Fortunate" but in its actual use in Malay history it is better translated as "the Conqueror".
He again rose to power in 1839 after seizing a small force by overthrowing his cousin Sultan Muhammad II of Kelantan.
[citation needed] He also codified his sultanate's religious law through appointments of Arab-descent imams from Riau; Hugh Clifford described its effect towards members of Terengganuan society interviewed decades since his reign as "the most zealous Muhammedans in the Peninsula".
[2] The Istana Hijau, Terengganu's royal palace, was constructed during his reign on 10 March 1870.