The GSD was the governing party in Gibraltar for four successive terms in office under the leadership of Peter Caruana from the 1996 general election until the party's electoral defeat in the 2011 election by the GSLP–Liberal Alliance.