Going into the election, the Scottish Labour Party had the largest number of seats and had a coalition agreement with the Scottish Liberal Democrats with Jack McConnell as First Minister. The Scottish National Party won 47 seats in the election, which was the largest number of seats for any party in the election, but was not enough to form a majority government. The Scottish National Party then formed a minority government with Alex Salmond as First Minister.