Same-sex marriage in Canada was progressively introduced in several provinces and territories by court decisions beginning in 2003 before being legally recognized nationwide with the enactment of the Civil Marriage Act on July 20, 2005. On June 10, 2003, the Court of Appeal for Ontario issued a decision immediately legalizing same-sex marriage in Ontario, thereby becoming the first province where it was legal. The introduction of a federal gender-neutral marriage definition made Canada the fourth country in the world, and the first country outside Europe, to legally recognize same-sex marriage throughout its borders. Before the federal recognition of same-sex marriage, court decisions had already introduced it in eight out of ten provinces and one of three territories, whose residents collectively made up about 90 percent of Canada's population. More than 3,000 same-sex couples had already married in those areas before the Civil Marriage Act was passed. Most legal benefits commonly associated with marriage had been extended to cohabiting same-sex couples since 1999. The Civil Marriage Act was introduced by Prime Minister Paul Martin's Liberal minority government to the House of Commons of Canada on February 1, 2005, as Bill C-38. It was passed by the House of Commons on June 28, 2005, by the Senate on July 19, 2005, and it received royal assent the following day. Following the 2006 election, which was won by a Conservative minority government under Prime Minister Stephen Harper, the House of Commons defeated a motion to reopen the matter by a vote of 175 to 123 on December 7, 2006, effectively reaffirming the legislation. This was the third vote supporting same-sex marriage taken by three parliaments under three prime ministers. Same-sex marriage by province/territory Same-sex marriage was legally recognized in the provinces and territories as of the following dates: June 10, 2003: Ontario July 8, 2003: British Columbia March 19, 2004: Quebec July 14, 2004: Yukon September 16, 2004: Manitoba September 24, 2004: Nova Scotia November 5, 2004: Saskatchewan December 21, 2004: Newfoundland and Labrador June 23, 2005: New Brunswick July 20, 2005 (Civil Marriage Act): Alberta, Prince Edward Island, Nunavut and the Northwest Territories Note that in some of these cases, some marriages were in fact legal at an earlier date (for example, an Ontario ruling held that marriages performed in January 2001 were legal when performed), but the legality was questioned. As of the given dates, the legality was authoritatively established. The