The second government of Adolfo Suárez was formed on 5 July 1977, following the latter's confirmation as Prime Minister of Spain by King Juan Carlos I on 17 June, as a result of the Union of the Democratic Centre (UCD) emerging as the largest parliamentary force at the 1977 general election. It succeeded the first Suárez government and was the Government of Spain from 5 July 1977 to 6 April 1979, a total of 640 days, or 1 year, 9 months and 1 day.