The Supreme Court’s 5-4 decision legalizing same-sex marriage across the nation sparked widely divergent reactions from Democratic and Republican candidates for president.

Within minutes of the ruling requiring states to allow same-sex couples to marry, issued just past 10 a.m., the 2016 hopefuls celebrated or decried it in press releases, tweets, and Facebook posts.

First out of the gate was Democrat Martin O’Malley, who spearheaded the Maryland legislature’s move to legalize same-sex marriage while he was governor.

O’Malley followed up with a souvenir from the marriage debate in Maryland, which saw advocates of same-sex marriage beat back a voter referendum to restore marriage as the union of one man and one woman.

O’Malley has mounted a long-shot bid to deny the Democratic nomination to front-runner Hillary Rodham Clinton. The former first lady, senator, and secretary of state was an opponent of same-sex marriage as recently as a few years ago but has made LGBT rights and “marriage equality” a cornerstone of her campaign.

Clinton quickly fired off two tweets:

Mike Huckabee, like Clinton’s husband a former Arkansas governor, was among the first few Republican candidates for president to react to the ruling. Huckabee, also a former pastor, tweeted:

In a statement online, Huckabee said:

This ruling is not about marriage equality, it’s about marriage redefinition. This irrational, unconstitutional rejection of the expressed will of the people in over 30 states will prove to be one of the court’s most disastrous decisions, and they have had many. The only outcome worse than this flawed, failed decision would be for the president and Congress, two co-equal branches of government, to surrender in the face of this out-of-control act of unconstitutional, judicial tyranny.

Louisiana Gov. Bobby Jindal, who entered the GOP race Wednesday with a call to protect religious liberty, issued his statement on the ruling to reporters at 10:17 a.m. Jindal warned:

This decision will pave the way for an all-out assault against the religious freedom rights of Christians who disagree … This ruling must not be used as pretext by Washington to erode our right to religious liberty.

The government should not force those who have sincerely held religious beliefs about marriage to participate in these ceremonies. That would be a clear violation of America’s long-held commitment to religious liberty as protected in the First Amendment.

Jeb Bush, the former Republican governor of Florida, said the nation must find a way for “good people” with opposing views “to live side by side.” Bush also said:

Guided by my faith, I believe in traditional marriage.  I believe the Supreme Court should have allowed the states to make this decision.  I also believe that we should love our neighbor and respect others, including those making lifetime commitments.

Carly Fiorina, the former Hewlett-Packard CEO who is the only woman in the GOP race, castigated the court for cutting short the marriage debate in the states while also showing respect for committed same-sex relationships.

Republican Rick Santorum, the former senator from Pennsylvania who is a long-time opponent of same-sex marriage, seemed to anticipate a verdict at the polls from ordinary Americans.

Sen. Bernie Sanders, the self-described democratic socialist from Vermont who is mounting a strong challenge to Clinton for the Democratic nomination, cast himself in a series of tweets as a longstanding champion of gay rights.

In a statement, Sanders said:

For far too long our justice system has marginalized the gay community and I am very glad the Court has finally caught up to the American people.

Four incumbent Republican senators also are running for president. In a statement issued at 10:54, Lindsey Graham of South Carolina said he is a defender of traditional marriage but “will respect” the Supreme Court’s decision and oppose any attempt to amend the Constitution to overturn it.

Graham added:

As president, I would staunchly defend religious liberty in this nation and would devote the necessary federal resources to the protection of all Americans from any effort to hinder the free and full exercise of their rights. While we have differences, it is time for us to move forward together respectfully and as one people.

Aides to Florida’s Marco Rubio emailed a lengthy statement to reporters at 11:10.

“I firmly believe the question of same-sex marriage is a question of the definition of an institution, not the dignity of a human being,” Rubio said, adding:

Every American has the right to pursue happiness as they see fit. Not every American has to agree on every issue, but all of us do have to share our country. A large number of Americans will continue to believe in traditional marriage, and a large number of Americans will be pleased with the court’s decision today. In the years ahead, it is my hope that each side will respect the dignity of the other.

Rubio’s staff began to tweet out the statement more than four hours afters after the ruling:

Ted Cruz of Texas, who enjoys a deft press and social media operation and was quick to assail the high court’s Obamacare ruling the day before, had yet to comment on the marriage ruling nearly five hours later.

Nor had Rand Paul of Kentucky, whose media outreach in both campaign and Senate offices rivals that of Cruz.

Cruz, however, is seeking support from House and Senate members for his proposed  amendment to the Constitution that would guarantee each state “the power to define marriage as limited to the union of one man and one woman.”

And in an afternoon call to Sean Hannity’s radio show, Cruz slammed the justices’ ruling as  “a radical decision purporting to strike down the marriage laws of every state.” He added:

It has no connection to the United States Constitution. They are simply making it up. It is lawless, and in doing so they have undermined the fundamental legitimacy of the United States Supreme Court.

Rick Perry, the former Texas governor making his second bid for the Republican nomination, said:

I am disappointed the Supreme Court today chose to change the centuries old definition of marriage as between one man and one woman. I’m a firm believer in traditional marriage, and I also believe the 10th Amendment leaves it to each state to decide this issue.

Two popular announced candidates who never before have held public office, retired pediatric neurosurgeon Ben Carson and real estate magnate Donald Trump, had yet to comment by midafternoon. No word either from another GOP hopeful,  former New York Gov. George Pataki.

Three incumbent Republican governors who are expected to enter the presidential race did offer their thoughts.

Wisconsin Gov. Scott Walker weighed in shortly after noon:

New Jersey Gov. Chris Christie addressed the high court’s decision in a press conference, saying he agreed with Walker’s outrage at “the way it was done” but emphasized his responsibility to enforce the decision.

“We must respect the decision,” Ohio Gov. John Kasich, also pondering the Republican race, said as same-sex couples began to marry in his state just before noon..

Lincoln Chafee, the former senator and governor from Rhode Island who is the fourth and most recent candidate in the Democratic race, hailed the ruling.

One well-known Democrat still on the sidelines of the 2016 race, Vice President Joe Biden, spurred President Obama’s decision to reverse his longstanding position that marriage is a man-woman union and endorse same-sex marriage just before the 2012 election.

Aides to Biden, echoing Obama’s own remarks this morning, tweeted:

This report has been updated.