Mahathir Mohamad, the fourth Prime Minister of Malaysia, formed the first Mahathir cabinet in 1981 after being invited by Tuanku Ahmad Shah to form a new government following the resignation of the previous Prime Minister, Hussein Onn. Hussein had presided over the second Hussein cabinet, a coalition government that consisted of members of the component parties of Barisan Nasional.