The president of Malta, who nominally heads the executive branch, appoints as Prime Minister the member of parliament who, in the opinion of the president, is best able to command a majority of the members of the House of Representatives. The prime minister advises the president on the appointment of the other ministers.