Update: On June 26, the Supreme Court ruled that states' same-sex marriage bans are unconstitutional, bringing marriage equality to all 50 states.

The final debate in the Supreme Court had been years in the making. Since 2013, when the Supreme Court struck down the federal ban on same-sex marriage, lower courts had followed with their own decisions effectively ending same-sex marriage bans in several states.

But as the decisions piled up, it could get a little difficult to track which same-sex marriage bans remained and which had been overturned. This simple list tracked where states stood prior to the Supreme Court's final decision.

States where same-sex couples can or will soon be able to marry

• Alabama: A federal judge on January 23 struck down the state's same-sex marriage ban. The 11th Circuit Court of Appeals and Supreme Court refused to delay the decision, allowing gay and lesbian couples to marry starting on February 9.

• Florida: A federal judge on August 21 struck down the state's same-sex marriage ban. The Supreme Court refused to stay the decision, allowing gay and lesbian couples to marry in the state starting on January 6. A state judge allowed marriages to begin one day earlier — on January 5 — in Miami-Dade County.

• South Carolina: The Fourth Circuit Court of Appeals, following a lower court's decision, on July 28 struck down Virginia's same-sex marriage ban. Since the Fourth Circuit Court presides over South Carolina, the decision should take effect there now that the Supreme Court on October 6 rejected an appeal on the circuit court's ruling. A federal judge on November 12 affirmed the Fourth Circuit Court's ruling, allowing gay and lesbian couples to marry on November 20 after the Supreme Court and Fourth Circuit Court of Appeals denied stays on the decision.

• Montana: The Ninth Circuit Court of Appeals, following a lower court's decision, on October 7 struck down Idaho and Nevada's same-sex marriage bans. Since the Ninth Circuit Court presides over Montana, the decision should take effect there. A federal judge on November 19 lifted the state's same-sex marriage ban, allowing gay and lesbian couples to marry immediately.

• Kansas: The 10th Circuit Court of Appeals, following a lower court's decision, on June 25 struck down Utah's same-sex marriage ban. Since the 10th Circuit Court presides over Kansas, the decision takes effect there now that the Supreme Court on October 6 rejected an appeal on the circuit court's ruling. A federal court on November 4 reinforced the circuit court's ruling, and the Supreme Court on November 12 allowed same-sex marriages to move forward.

• Missouri: A federal judge on November 7 struck down the state's same-sex marriage ban. But the state's ban remains in place until the case works through the legal appeals process, although a state judge on November 6 allowed same-sex marriages to begin in St. Louis County.

• Wyoming: The 10th Circuit Court of Appeals, following a lower court's decision, on June 25 struck down Utah's same-sex marriage ban. Since the 10th Circuit Court presides over Wyoming, the decision took effect there after the Supreme Court on October 6 rejected an appeal on the circuit court's ruling. A federal judge on October 17 reinforced the circuit court's ruling. State officials, after announcing they won't appeal the decision, allowed same-sex couples to wed starting on October 21.

• Alaska: The Ninth Circuit Court of Appeals, following a lower court's decision, on October 7 struck down Idaho and Nevada's same-sex marriage bans. Since the Ninth Circuit Court presides over Alaska, the decision took effect there. With a federal court's decision on October 12, same-sex marriages were briefly allowed to begin. The Ninth Circuit Court of Appeals on October 15 placed the weddings on hold until October 17 to give an appeal time to go in front of the US Supreme Court, but the Supreme Court on October 17 denied the appeal, allowing same-sex couples to marry.

• Arizona: The Ninth Circuit Court of Appeals, following a lower court's decision, on October 7 struck down Idaho and Nevada's same-sex marriage bans. Since the Ninth Circuit Court presides over Arizona, the decision took effect there. A federal judge on October 17 reinforced the Ninth Circuit Court's decision, allowing same-sex couples to wed immediately in the state.

• Idaho: The Ninth Circuit Court of Appeals, following a lower court's decision, on October 7 struck down the state's same-sex marriage ban, but the US Supreme Court initially put the ruling on hold. The Supreme Court on October 10 lifted its stay, and the Ninth Circuit Court on October 13 said same-sex couples can marry in Idaho starting on October 15.

• North Carolina: The Fourth Circuit Court of Appeals, following a lower court's decision, on July 28 struck down Virginia's same-sex marriage ban. Since the Fourth Circuit Court presides over North Carolina, the decision took effect there after the Supreme Court on October 6 rejected an appeal on the circuit court's ruling. With a federal court's decision on October 10, same-sex marriages were allowed to begin.

• Nevada: The Ninth Circuit Court of Appeals, following a lower court's decision, on October 7 struck down the state's same-sex marriage ban. After state officials announced they won't appeal the case further, courts cleared same-sex marriages to begin in Nevada.

• West Virginia: The Fourth Circuit Court of Appeals, following a lower court's decision, on July 28 struck down Virginia's same-sex marriage ban. Since the Fourth Circuit Court presides over West Virginia, the decision took effect there after the Supreme Court on October 6 rejected an appeal on the circuit court's ruling. On October 9, West Virginia Attorney General Patrick Morrisey and Governor Earl Ray Tomblin announced they will not fight a challenge to the state's same-sex marriage ban, allowing same-sex couples to marry no later than October 14.

• Colorado: The Colorado Supreme Court on October 7 cleared the way for same-sex marriages in the state, after the 10th Circuit Court of Appeals on June 25 struck down Utah's same-sex marriage ban — in a ruling that spans the entire 10th circuit, including Colorado — and the Supreme Court on October 6 rejected an appeal on the 10th circuit ruling.

• Indiana: The Seventh Circuit Court of Appeals, following a lower court's decision, on September 4 struck down the state's same-sex marriage ban. When the Supreme Court rejected an appeal, same-sex marriage became effectively legal.

• Oklahoma: The 10th Circuit Court of Appeals, following a lower court's decision, on July 18 struck down the state's same-sex marriage ban. When the Supreme Court rejected an appeal, same-sex marriage became effectively legal.

• Utah: The 10th Circuit Court of Appeals, following a lower court's decision, on June 25 struck down the state's same-sex marriage ban. When the Supreme Court rejected an appeal, same-sex marriage became effectively legal.

• Virginia: The Fourth Circuit Court of Appeals, following a lower court's decision, on July 28 struck down the state's same-sex marriage ban. When the Supreme Court rejected an appeal, same-sex marriage became effectively legal.

• Wisconsin: The Seventh Circuit Court of Appeals, following a lower court's decision, on September 4 struck down the state's same-sex marriage ban. When the Supreme Court rejected an appeal, same-sex marriage became effectively legal.

Also:

• Oregon, Pennsylvania, Illinois, California, Delaware, Hawaii, Maryland, Minnesota, New Jersey, New Mexico, Rhode Island, Maine, Washington, New York, District of Columbia, New Hampshire, Iowa, Vermont, Connecticut, and Massachusetts.

States where courts overturned bans, but rulings are under appeal

• Nebraska: A federal judge on March 2 struck down the state's same-sex marriage ban. But, on March 5, the Eighth Circuit Court of Appeals put the decision on hold as it works through the appeals process.

• South Dakota: A federal judge on January 12 struck down the state's same-sex marriage ban. But the decision was put on hold as the case works through legal appeals processes.

• Mississippi: A federal judge on November 25 struck down the state's same-sex marriage ban. But the decision was put on hold as the case works through legal appeals processes.

• Arkansas: An Arkansas judge on May 10 struck down the state's same-sex marriage ban. A federal judge on November 25 also struck down the state's marriage ban. But the state's ban remains in place until the cases work through legal appeals processes.

• Louisiana: A federal judge on September 3 upheld the state's same-sex marriage ban — the first time a federal court ruled against same-sex marriage rights since the Supreme Court's decision. But a state judge on September 22 struck down Louisiana's ban.

• Texas: A federal judge on February 26 struck down the state's same-sex marriage ban. But the state's ban remains in place until the case works through the legal appeals process.

States where same-sex marriage bans are in effect but are being challenged in court

• Kentucky: The Sixth Circuit Court of Appeals on November 6 upheld the state's same-sex marriage ban. The decision is being appealed to the Supreme Court.

• Ohio: The Sixth Circuit Court of Appeals on November 6 upheld the state's same-sex marriage ban. The decision is being appealed to the Supreme Court.

• Michigan: The Sixth Circuit Court of Appeals on November 6 upheld the state's same-sex marriage ban. The decision is being appealed to the Supreme Court.

• Tennessee: The Sixth Circuit Court of Appeals on November 6 upheld the state's same-sex marriage ban. The decision is being appealed to the Supreme Court.

Also:

• Georgia and North Dakota.