The President of Portugal has the power to dissolve the Assembly of the Republic by their own will. Unlike in other countries, the President can refuse to dissolve the parliament at the request of the Prime Minister or the Assembly of the Republic and all the parties represented in Parliament. If the Prime Minister resigns, the President must appoint a new Prime Minister after listening to all the parties represented in Parliament and then the government programme must be subject to discussion by the Assembly of the Republic, whose members of parliament may present a motion to reject the incoming government.