Compare politicians

Politician comparison

Pick any two politicians and see their bios, party histories, election records, and stated positions side-by-side.

Photo of Anwar Ibrahim

Anwar Ibrahim

PKR · PH

Tambun · Perak

Photo of Datuk Onn Hafiz Ghazi

Datuk Onn Hafiz Ghazi

UMNO · BN

Machap · Johor

Party-hopping tier

Katak

1 hops, 2 parties · 1 coalition cross

Loyalist

Never switched parties

Party trajectory

  1. UMNO
  2. PKR
  1. UMNO

Win rate

Career

90%

After hopping

100%

Career

100%

After hopping

Elections

5 contested

  • Won 5
  • Lost 0

2 contested

  • Won 2
  • Lost 0

Education

  • 1968–1971Studied at the University of Malaya; served as president of the National Union of Malaysian Muslim Students (1968–1971).
  • 1990sAttended Royal Military College, Malaysia.
  • Late 1990s–Early 2000sReceived Bachelor of Arts in Accounting from the University of Hertfordshire, United Kingdom.

Career highlights

  • 24 November 2022Sworn in as Malaysia's 10th Prime Minister by the Yang di-Pertuan Agong following the 15th general election, heading a national unity government after winning…
  • 3 December 2022Formed the Anwar Ibrahim Cabinet, retaining the Finance Minister portfolio for himself, consisting of members from PH, GPS, UMNO and other coalition partners.
  • October 2018Won the Port Dickson by-election with 31,016 votes and a majority of 23,560 votes, returning to Parliament following a royal pardon received in May 2018.
  • 2018–2020Became president of PKR in 2018 and, in 2020, chairman of the Pakatan Harapan coalition.
  • August 2008Won the Permatang Pauh by-election with 31,195 votes, returning to Parliament as Leader of the Opposition after his political ban expired.
  • +5 more
  • 1 June 2026Announced the dissolution of the Johor State Legislative Assembly following the consent of the Regent of Johor, Tunku Mahkota Ismail, paving the way for the…
  • February 2024Appointed Johor Barisan Nasional State Chairman.
  • December 2023Appointed Johor UMNO State Chairman, replacing Datuk Seri Mohamed Khaled Nordin.
  • 12 March 2022Won the Machap state seat in the 15th Johor state election under UMNO/BN with a majority of 6,543 votes, defeating three other candidates including one from…
  • 15 March 2022Sworn in as the 19th Menteri Besar of Johor by Sultan Ibrahim Sultan Iskandar at Istana Bukit Serene, Johor Bahru.
  • +3 more

Recent public statements

  • We believe that an unwavering commitment to combating corruption will enhance national and regional competitiveness, foster a dynamic business environment, and ensure inclusive economic growth that…

    2025 · Said at the Malaysia International Conference on Governance and Integrity 2025…

  • We need to save the country. The primary issue is poor governance coupled with systemic corruption.

    2024 · Said during an interview with CNBC, as reported by Malay Mail, approaching his…

  • Most of the time, the reports I receive on paper and what is actually happening on the ground are two different things.

    2026 · Onn Hafiz defending his practice of unannounced visits to state agencies and…

  • That is why we always ensure that state revenue is returned to the people.

    2026 · Onn Hafiz speaking to Bernama on the fourth anniversary of his administration,…

  • With the world full of uncertainties, Johor must ensure stability.

    2026 · Onn Hafiz explaining the rationale for calling an early state election, citing…

Business interests

No reported business interests
No reported business interests

Legal history

No reported cases