Despite the "one party" convention, prime ministers may still be called upon to lead either minority or coalition governments. A minority government may be formed as a result of a "hung parliament" in which no single party commands a majority in the House of Commons after a general election or the death, resignation or defection of existing members. By convention, the serving prime minister is given the first opportunity to reach agreements that will allow them to survive a vote of confidence in the House and continue to govern. Until 2017, the last minority government was led by Labour Prime Minister Harold Wilson for eight months after the February 1974 general election produced a hung parliament. In the October 1974 general election, the Labour Party gained 18 seats, giving Wilson a majority of three.