While the Prime Minister is typically the leader of the party or coalition that holds a majority in the Lok Sabha and is consequently chosen based on the support they command in the lower house, the formal act of appointing the Prime Minister is done by the President of India.