General elections were held in Malaysia on Wednesday, 9 May 2018. At stake were all 222 seats in the Dewan Rakyat, the lower house of parliament. The 13th Parliament was dissolved by Prime Minister Najib Razak on 7 April 2018. It would have been automatically dissolved on 24 June 2018, five years after the first meeting of the first session of the 13th Parliament of Malaysia on 24 June 2013.
In an unprecedented victory, the Pakatan Harapan (PH) coalition, which had been the country's federal opposition prior to the elections, won a majority in the Dewan Rakyat together with the Sabah Heritage Party (WARISAN), with PH and WARISAN together winning 121 seats. The elections marked the first time in Malaysia's history that the ruling party was voted out of power. The Barisan Nasional (BN) coalition had previously enjoyed an uninterrupted reign over the country since Malaya's independence in 1957, but this came to an end following the elections. PH's leader, Mahathir Mohamad, who previously served as Malaysia's prime minister from 1981 to 2003, was sworn in for the second time on 10 May, a day after the elections. At 93 years of age, Mahathir was also the world's oldest elected head of government. Barisan Nasional (BN), led by Najib, held onto 79 seats and became the new federal opposition, along with Gagasan Sejahtera (GS), which won 18 seats. The United Sabah Alliance (USA) won one seat, while three seats were won by independent politicians. The elections were widely regarded as one of the greatest political upsets worldwide in 2018.