The Supreme Court ruled Thursday that a Peace Cross war memorial on public land outside Washington, D.C., can stand, determining in a 7-2 decision that it does not violate the Constitution.

Residents of Prince George’s County, Maryland and the American Humanist Association (AHA) had sued to have the cross taken down, and the American Legion, whose symbol is also on the memorial, intervened to defend it. While the residents and AHA claimed that a cross memorial on public land violated the Constitution, the Court determined that factors, including the history of the memorial, support the idea that it is not religious in nature.

SUPREME COURT TOSSES RULING AGAINST BAKERS WHO REFUSED CAKE FOR GAY COUPLE

“For nearly a century, the Bladensburg Cross has expressed the community’s grief at the loss of the young men who perished, its thanks for their sacrifice, and its dedication to the ideals for which they fought,” Justice Samuel Alito wrote in the court’s opinion. Alito noted that while this particular cross does not serve a religious purpose, removing it because it is a cross would be a religiously charged action.

“It has become a prominent community landmark, and its removal or radical alteration at this date would be seen by many not as a neutral act but as the manifestation of ‘a hostility toward religion that has no place in our Establishment Clause traditions,’” he wrote, quoting Justice Breyer’s concurrence in the 2005 decision in Van Orden v. Perry.

The court’s decision reverses the Fourth Circuit Court of Appeals, which ruled that the cross was unconstitutional.

The 7-2 majority on Thursday cited the structure’s historical nature in its narrowly drawn decision, saying the Latin cross design reflected the nationwide trend at the time it was erected to honor war dead with community monuments. The cross was associated with World War I, and the Court noted that the U.S. used it in military honors, such as the Distinguished Service Cross in 1918 and Navy Cross in 1919.

The Bladensburg Peace Cross, as it is known, sits in a traffic circle in the Washington suburbs to honor 49 local World War I soldiers who died in battle overseas.

Its supporters, including the Trump administration, said it was created solely to honor those heroes and is secular in nature. Opponents called it an impermissible overlap of church and state, since it is controlled and cared for by a Maryland parks commission.

The Court noted that while the cross has its roots in Christianity, it currently appears contexts that are “indisputably secular,” such as trademarks for Blue Cross Blue Shield, Bayer Group, and certain products from Johnson & Johnson.

The Court also made a distinction between keeping established monuments with religious symbols, like the Peace Cross, and erecting new ones, stating, “Familiarity itself can become a reason for preservation,” and, “The passage of time gives rise to a strong presumption of constitutionality.”

Even AHA recognized that cross memorials may be permissible in some cases, like certain World War I Latin crosses in Arlington National Cemetery. While AHA claimed that those crosses are different because they are in a cemetery and are more associated with individual soldiers, the Court said that does not make a difference, as memorials serve the same purpose as gravestones for many grieving families.

Ultimately, the Court determined that despite the religious significance of crosses in general, this particular memorial does not violate the Establishment Clause of the First Amendment, even though public funds are used for its upkeep.

“[T]there is no evidence of discriminatory intent in the selection of the design of the memorial or the decision of a Maryland commission to maintain it,” the Court said. “The Religion Clauses of the Constitution aim to foster a society in which people of all beliefs can live together harmoniously, and the presence of the Bladensburg Cross on the land where it has stood for so many years is fully consistent with that aim.”

VIRGINIA TO USE NEW DEMOCRAT-FRIENDLY DISTRICT MAP AFTER SCOTUS RULING IN GERRYMANDERING CASE

Justice Ruth Bader Ginsburg took issue with the notion that a cross could be secularized just because it serves as a war memorial.

“Just as a Star of David is not suitable to honor Christians who died serving their country, so a cross is not suitable to honor those of other faiths who died defending their nation,” she wrote in a dissenting opinion, where she was joined by Justice Sonia Sotomayor. The dissent claimed that by having the Peace Cross on a public highway, the government “elevates Christianity over other faiths, and religion over nonreligion.”

Fox News’ Bill Mears and Shannon Bream contributed to this report.