In accordance to the Italian Constitution, the election was held in the form of a secret ballot, with the Senators and the Deputies entitled to vote. The election was held in the Palazzo Montecitorio, home of the Chamber of Deputies, with the capacity of the building expanded for the purpose. The first three ballots required a two-thirds majority of the 1,011 voters in order to elect a president, or 675 votes. Starting from the fourth ballot, an absolute majority was required for candidates to be elected, or 506 votes. The presidential mandate lasts seven years. The election was presided over by the President of the Chamber of Deputies Pietro Ingrao, who proceeded to the public counting of the votes, and by the Vice president of the SenateLuigi Carraro, since President Amintore Fanfani was serving as acting President of the Republic.
Sandro Pertini, one of the most prominent socialist leaders, wasn't voted till the last ballot.
Chronology
The extremely disputed Giovanni Leone's presidency came to an end in June 1978 due to allegations made in the United States over Lockheed bribing a number of high-profile politicians in Italy to purchase Hercules Aircraft for the military. Even if the accusation was never proved, Leone decided to resign in order to prevent the beginning of the so called "white semester", the six months period before the end of a presidential mandate during which the President cannot dissolve the Parliament and call a general election. Leone's resignation came during a very difficult moment for the Italian Republic. Tight in the grip of the Years of Lead and of the strategy of tension, the country had suffered major terrorist attacks during the decade, such as 1974 Piazza della Loggia bombing and 1974 Italicus Express bombing. The climax of tension came in March 1978, when the former Prime MinisterAldo Moro was kidnapped and killed by a unit of the militant far-left organisation known as the Red Brigades while on his way to a session of the Chamber of Deputies where a discussion was to take place regarding a vote of confidence for a new government that would have had for the first time ever the support of the Italian Communist Party. Politically, Moro's stance to find an accommodation between the Christian Democracy and the Italian Communist Party was a way to lead the country out of the tensions and to make the republic institutions more solid and stable as response to domestic terrorism. The Historic Compromise was made possible by the new course inaugurated by the new communist leader Enrico Berlinguer, who in 1973 launched in communist magazine Rinascita a proposal for a "democratic alliance" with Christian Democracy in order to prevent a coup d'état similar to the Chilean one. However the sudden death of Moro was an hard blow to the Historical Compromise politics and a major defeat for the republic institutions in front of the public opinion. In that context, in summer 1978 the Italian Parliament convened to elect a new President. After 1976 general election, the left-wing parties together detained now a narrow majority in both houses of the Parliament and claimed the next President must have been a leftist one. After a long negotiation, the parties of the so called "constitutional arch" - an expression used to indicate all the democratic parties represented in Parliament with the exception of the neo-fascist Italian Social Movement - found a deal on the name of the popular socialist lawmaker and former partisan Sandro Pertini. On 8 July 1978 Pertini was finally elected President with the largest majority ever obtained in an Italian presidential election and sworn in as the new President one day after.