Former President Donald Trump's name will remain on the Colorado 2024 presidential primary ballot, a judge ruled Friday.

"The court orders the Secretary of State to place Donald J. Trump on the presidential primary ballot when it certifies the ballot on January 5, 2024," U.S. District Court Judge Sarah B. Wallace wrote in her ruling.

The decision came following a legal challenge seeking to disqualify Trump from appearing on the ballot, citing the 14th Amendment.

BIDEN USES TRUMP'S OWN WORDS AGAINST HIM IN BID TO RECAPTURE THIS MAJOR VOTING BLOCK FOR DEMS IN 2024

Former President Donald Trump

Former President Donald Trump speaks to guests at the 2023 NRA-ILA Leadership Forum on April 14, 2023 in Indianapolis, Indiana. (Scott Olson/Getty Images)

The lawsuit sought to use the Disqualifications Clause, or Section 3 of the 14th Amendment, which bars individuals who have "engaged in insurrection or rebellion" against America or who have aided those engaged in such activities from holding office, and specifically cited Trump’s alleged involvement in the Capitol riot of Jan. 6, 2021. 

Watchdog group Citizens for Responsibility and Ethics in Washington (CREW), as well as six Colorado voters, filed the lawsuit in September, one of multiple legal attempts in a number of states across the country aiming to prevent Trump winning another four years in the White House.

CREW, a left-wing organization that often targets Republicans, was optimistic Friday morning that the ruling would fall in their favor.

NEW YORK JUDGE LIFTS TRUMP GAG ORDER IN CIVIL FRAUD TRIAL OVER FREE SPEECH CONCERNS

Capitol riot

A scene from the January 6 riot at the U.S. Capitol in 2021. (AP Photo/Julio Cortez, File)

In a statement following the ruling, Trump campaign spokesman Steven Cheung called it "another nail in the coffin of the un-American ballot challenges."

"With this decision, Democrats’ 14th Amendment challenges have now been defeated in Colorado, Michigan, Minnesota and New Hampshire. These cases represent the most cynical and blatant political attempts to interfere with the upcoming presidential election by desperate Democrats who know Crooked Joe Biden is a failed president on the fast track to defeat," he said. 

"The American voter has a Constitutional right to vote for the candidate of their choosing, with President Donald J. Trump leading by massive numbers. This right was correctly preserved in Colorado today and urge the swift disposal of any and all remaining Democrat ballot challenges. Onward to total victory in 2024, we will Make America Great Again!" he added.

JUDGE IN TRUMP'S GEORGIA ELECTION INTERFERENCE CASE ORDERS ‘SENSITIVE’ EVIDENCE WITHHELD FROM PUBLIC

The decision comes after a Michigan judge ruled Wednesday in a similar lawsuit that Trump would also remain on that state's primary ballot, which followed the Minnesota Supreme Court and a federal judge in New Hampshire previously dismissing other challenges.

Former President Donald Trump

Former President Donald Trump leaves the courtroom for a lunch break during his civil fraud trial at New York State Supreme Court on November 06, 2023 in New York City. (Michael M. Santiago/Getty Images)

Trump is the first former president in United States history to face criminal charges. 

He was indicted during special counsel Jack Smith's investigation into alleged interference in the 2020 election and the Jan. 6, 2021 Capitol riot. He faces criminal charges in Georgia, New York and from Smith's separate investigation into his alleged mishandling of classified documents.

CLICK HERE TO GET THE FOX NEWS APP

Trump pleaded not guilty to all charges, which included conspiracy to defraud the United States, conspiracy to obstruct an official proceeding, obstruction of and attempt to obstruct an official proceeding and conspiracy against rights.

Get the latest updates from the 2024 campaign trail, exclusive interviews and more at our Fox News Digital election hub.

Fox News' Brooke Singman and Anders Hagstrom contributed to this report.