Subscribe to Mic Daily
We’ll send you a rundown of the top five stories every day

The Supreme Court on Thursday ruled that states can collect sales tax from all retailers, even if those retailers do not have a “physical presence” in their state — ultimately paving the way for states to collect sales tax from online retailers.

The case originated from a lawsuit that the state of South Dakota had filed against four online retailers, including the online furniture retailer Wayfair. South Dakota had passed a bill in 2016 that said online retailers must collect sales tax if they make more than $100,000 worth of sales in their state, or do 200 transactions in their state.

The retailers refused to collect sales tax — citing a 1992 law that prohibited states from collecting sales tax from retailers that did not have a “physical presence” in their state, such as a store, warehouse or sales representatives.

But on Thursday, the Supreme Court ruled in a 5-4 decision that states do have the right to collect sales tax from online retailers that do not have physical presences in their state.

In the decision, Supreme Court Justice Anthony Kennedy said that the 1992 court decision essentially created a “tax shelter for businesses that limit their physical presence in a state but sell their goods and services to the state’s consumers, something that has become easier and more prevalent as technology has advanced.”

Some major online retailers, such as Amazon, have already agreed on their own to collect sales tax nationwide. But others have resisted, making Thursday’s decision significant.

Stock prices for major online retailers fell after the decision was announced.