Malaysia's main opposition, Pakatan Harapan, led by Mahathir Mohamad, along with the Sabah Heritage Party, won 121 seats in the Dewan Rakyat, allowing them to form a majority government. Mahathir became the next Prime Minister. Mahathir was sworn in on May 10, a day after the election. Barisan Nasional, led by former Prime Minister Najib Razak, won 79 seats, becoming the Opposition after 61 years of holding the majority.