AP Photo/TLC, George Lange, File The Brown family, who rose to prominence on the TLC reality show "Sister Wives."

A judge ruled Wednesday that the law making polygamy illegal in Utah is unconstitutional. Here's what you need to know:

What just happened? A federal judge in Salt Lake City — Clark Waddoups — issued a final ruling in the so-called Sister Wives case, which is known for the TLC show that prompted it. Sister Wives stars the polygamous Brown family, who sued in 2011 because officials where they lived threatened to come after them. The Brown family won their biggest victory in December, when the judge said the Utah law that made polygamy illegal — and which would have been used against them — was unconstitutional. The case was left hanging, however, while both sides argued over whether or not the family's rights were violated by years of criminal investigations. Wednesday's ruling resolves all the pending issues and hands a resounding victory to the Browns. Not only did the judge decide that the law against polygamy was unconstitutional, he also agreed that the family's rights had been violated and said they "are entitled to an award of attorney's fees, costs, and expenses incurred in this action." This all effectively means that for the time being polygamy in Utah is no longer illegal.

Wasn't polygamy already legal in Utah? That's, like, one of the main things the state is famous for, right? Utah is indeed known for polygamy — there's even a local beer cheekily called "Polygamy Porter" — but also has a surprisingly contentious past when it comes to non-monogamous marriages. The state's reputation dates back to its founders, Mormon pioneers, whose faith included "plural marriage." The mainstream Mormon Church banned polygamy in the late 1800s, but some members of the church refused to accept the policy change and gradually broke away to form their own groups.

George Frey / Getty Images Members of the Fundamentalist Church of Jesus Christ of Latter-Day Saints, one of many different polygamous groups in Utah.

Today, there are many different groups in Utah that practice polygamy, but they're mostly small and often live either in relatively rural communities or on the peripheries of urban areas. (There are some notable exceptions, such as the very open Darger family, or the more secretive Kingston group.) The average Utahn is not a polygamist. In any case, the lifestyle of Utah's polygamous groups was illegal because the state had a law against cohabitation.

Wait, cohabitation? So the law against polygamy also made it illegal in Utah to live with your boyfriend or girlfriend? Technically, yes. In practice, however, the law was not enforced against monogamous couples. Instead, it was seen as a way for officials to go after polygamous families. Even that was pretty rare, but the potential threat remained, as the Brown family learned when prosecutors starting hinting about going after them. With this case wrapping up, however, it's no longer illegal to cohabitant with someone in the state of Utah.

So polygamy is legalized in Utah. Can anyone go down to the courthouse and get married to multiple people? No. The best way to describe the effect of this case is to say that polygamy, as practiced in Utah, is not illegal. It's still against the law in Utah to get legally married to multiple people, which is bigamy. But that's kind of a mouthful, so the simplified version is that anyone can live with anyone else — polygamists and monogamists included — without breaking the law. The reason this case legalized polygamy is because most polygamists in Utah aren't actually trying to get legally married to each other; after their first marriage, they merely have a "spiritual" or religious ceremony. That used to be illegal because it was cohabitation, but now it is not.

AP Photo/Rick Bowmer, File The polygamous Williams family — including five wives, from left to right, Robyn, Paulie, Rhonda, Nonie and Rosemary — live near Salt Lake City.