In Malaysia, the Yang di-Pertua Negeri (Jawi: يڠ دڤرتوا نݢري, lit. 'He Who is Made Leader of the Land' in Malay) is a constitutional title given to the head of state in states without a ruler, namely: Penang, Malacca, Sabah and Sarawak. This is in contrast to a Ruler (Malay: Raja) which is a constitutional title given to states with hereditary monarchies, namely: the Sultans of Johor, Kedah, Kelantan, Pahang, Perak, Selangor and Terengganu; the Raja of Perlis: and the Yang di-Pertuan Besar (lit. 'He Who is Made Chief Ruler' in Malay) of Negeri Sembilan.
They are appointed to renewable four-year terms by the Yang di-Pertuan Agong (lit. 'He Who is Made Supreme Ruler' in Malay), the supreme head of state of Malaysia, after consulting the chief minister.
A Yang di-Pertua Negeri functions as a head of state in a parliamentary democracy. Their discretionary roles include appointing the head of government, the chief minister, or ketua menteri in Malay, who are usually the leader of the party with a majority in the state legislature, and withholding consent to dissolve the state legislature. On all other matters, they must act on the advice of the chief minister, such as appointing the members of the Executive Council in Penang and Malacca, and the Cabinet in Sabah and Sarawak, conferring state honours and granting pardons for offences committed in their state—except pardons for court martial and syariah offences, which are granted by the Yang di-Pertuan Agong.
There are two major distinctions between the constitutional roles of the nine hereditary rulers and the four Yang di-Pertua Negeri. While the Yang di-Pertua Negeri are members of the Conference of Rulers, they cannot participate in the election of the Yang di-Pertuan Agong, discussions related to the privileges of the Malay rulers and matters concerning the observance of Islam. In addition, the Yang di-Pertua Negeri does not function as Head of Islam in their states; the role is fulfilled by the Yang di-Pertuan Agong. Stylistically, states with Rulers appoint menteri besar (lit. 'chief minister' in Malay) while the Yang di-Pertua Negeri appoint chief ministers of their respective states. This convention was first started with the former Straits Settlements: Penang and Malacca, and subsequently extended to the Borneo States of Sabah and Sarawak. However, in 2022, Sarawak deviated from this convention by changing the title of chief minister to premier to reflect its status as one of the Borneo states which are of a different constitutional position than the States of Malaya as they are asymmetrically accorded more autonomy. This move is similar to how Singapore retained the title of Prime Minister for the head of government (which was first established after it gained self-independence from the United Kingdom in 1959) when it became a state of the Federation as it was the state with the most autonomy. Sabah as of yet has not changed the title of chief minister.
Prior to 1976, the heads of state of Penang, Malacca and Sarawak were titled as "Governor" in English and "Gabenor" in Malay, whereas the head of state of Sabah was titled "Yang di-Pertua Negara" (lit. 'He Who is Made Leader of the Nation' in Malay) in both languages. Meanwhile, the head of state in Singapore was titled "Yang di-Pertuan Negara" (lit. 'He Who is Made Ruler of the Nation' in Malay) in both English and Malay which was also first established after achieving self-independence in 1959.
After the formation of Malaysia in 1963, upon adopting new state constitutions, Sarawak retained the title of Governor passed down from the British colonial rule, Sabah created a new title called the Yang di-Pertua Negara, while Singapore retained the title of Yang di-Pertuan Negara passed down from the period self-governance.
After the Federation of Malaya achieved independence in 1957, "Governor" referred to the heads of state of the former Straits Settlements, Penang and Malacca. When Malaysia was formed, the previous definition of Governor was extended to the states of Sabah, Sarawak and Singapore in the newly promulgated Federal Constitution. This means that constitutionally speaking, the heads of state in all the states without a Ruler: Penang, Malacca, Sabah, Sarawak and Singapore, were of the same constitutional role, regardless of the style of name. When Singapore was expelled from Malaysia to become an independent republic, the office of Yang di-Pertuan Negara was eventually replaced with the office of President.
Since 1976, the style of name for the heads of state of Penang, Malacca, Sabah and Sarawak were made uniform by titling it Yang di-Pertua Negeri in both English and Malay.