Following the May 2012 general election in which the New Democracy party became the largest party in the Hellenic Parliament, Samaras was asked by Greek President Karolos Papoulias to try to form a government. However, after a day of negotiations with the other parties, Samaras officially announced he was giving up the mandate to form a government. The task passed to Alexis Tsipras, Leader of Syriza, the second largest party, who was also unable to form a government. After the Panhellenic Socialist Movement (PASOK) also failed to negotiate a successful agreement to form a government, emergency talks with the President of Greece ended with a new election being called while the outgoing Chairman of the Council of State Panagiotis Pikrammenos was appointed as Prime Minister of Greece in a caretaker government composed of independent technocrats.