The Supreme Court ruled Monday that Ohio is allowed to purge eligible voters from the state's registration records if they have not cast ballots in a while.

In a 5-4 ruling issued by Justice Samuel Alito, the high court ruled that Ohio's law to trigger the removal of inactive voters from the state's registry can be enforced.

State officials argued that the process used by Ohio for more than 20 years is constitutional and legal, and meant to ensure election security.

Civil liberties groups challenged the state's program for removing thousands of people from voter rolls based on their failure to vote in recent elections, claiming it violated the National Voter Registration Act.

But Alito said that Ohio is complying with the National Voter Registration Act of 1993. At least six other states have similar rules in place, and Monday's decision could lead others to adopt similar procedures.

"It is undisputed that Ohio does not remove a registrant on change-of-residence grounds unless the registrant is sent and fails to mail back a return card and then fails to vote for an additional four years," Alito wrote in his opinion.

He concluded: "We have no authority to second-guess Congress or to decide whether Ohio's Supplemental Process is the ideal method for keeping its voting rolls up to date. The only question before us is whether it violates federal law. It does not.

Ohio has been purging its voter rolls for over 20 years.

The state removes voters from the rolls after the election board sends a notice and if the individual hasn't voted in 4 years.

Justice Alito cited a shocking statistic that 24 million voter registrations-about one in eight-are "either invalid or significantly inaccurate," and that about 2.75 million people "are said to be registered to vote on more than one state," Fox News reported.

His opinion was supported by Chief Justice John Roberts and Justices Anthony Kennedy, Clarence Thomas and Neil Gorsuch.

Fantastic ruling for clean elections by the Supreme Court today. In fact, the High Court upheld a settlement agreement between Ohio and @JudicialWatch to help clean voter rolls in Ohio. Leftists opposed to election integrity suffered a big defeat today.