If a government cannot get its appropriation (budget) legislation passed by the Legislative Assembly, or the Legislative Assembly passes a vote of "no confidence" in the government, the Menteri Besar is bound by convention to resign immediately.
Following a resignation in other circumstances, defeated in an election or the death of the Menteri Besar, the Sultan will generally appoint as Menteri Besar the person voted by the governing party as their new leader.