Mr. Martin's government made same-sex marriage legal. It also had problems with the Sponsorship scandal in 2004. In 2006, Parliament passed a vote of no confidence, which forced a national election to be held on January 23. The Liberals lost the election and Martin lost his position as prime minister. Soon afterwards, he resigned his position as leader of the Liberal Party.