WASHINGTON -- Former President Bill Clinton is calling on the Supreme Court to overturn a law he signed that bars federal recognition of same-sex marriages.

Clinton says the Defense of Marriage Act is incompatible with the Constitution. He says he signed the law in 1996 to avoid legislation that would have been even worse for gays.

Clinton writes in a Washington Post op-ed that American society has changed. He says he now realizes the law discriminates against gays and provides an excuse for others to discriminate, too.

The Obama administration has stopped defending the law in court, and the Supreme Court is expected to take up a challenge to it later this month.

Separately, the high court is also considering whether California's gay marriage ban should stand.

Also on HuffPost:

Loading Slideshow...
  • Connecticut

    Since November 12, 2008

  • Delaware

    Gay marriage law <a href="http://www.huffingtonpost.com/2013/05/07/delaware-gay-marriage-law-_n_3232771.html" target="_blank">enacted</a>, weddings to begin July 1.

  • Iowa

    Since April 3, 2009

  • Maine

    In 2012, Maine voted in favor of a ballot amendment to legalize gay marriage.

  • Maryland

    The gay marriage bill was signed into law by Gov. Martin O'Malley (D) on March 1, 2012. Opponents later gathered enough signatures to force the issue back onto the ballot in November 2012, but voters rejected the effort against gay marriage.

  • Massachusetts

    Since May 17, 2004

  • Minnesota

    Same-sex marriage bill signed into law in May. Gay marriages will begin in August.

  • New Hampshire

    Since January 1, 2010

  • New York

    Since July 24, 2011

  • Rhode Island

    Bill passed in May. Law takes effect on August 1, 2013.

  • Vermont

    Since September 1, 2009

  • Washington

    On February 13, 2012, Gov. Christine Gregoire (D) signed a law allowing same-sex marriage ceremonies to begin on June 7, 2012. The process was delayed by gay marriage opponents who gathered enough signatures to put the issue up to a state vote in November 2012. They voted to approve it on Election Day.

  • Washington D.C.

    Since March 9, 2010

  • California

    The state initially began conducting gay marriages on June 16, 2008. On November 5, 2008, however, California voters passed Proposition 8, which amended the state's constitution to declare marriage as only between a man and a woman. In 2013, the Supreme Court ruled against that law, and the state shortly thereafter began sanctioning same-sex nuptials.