Sens. Marco Rubio and Ted Cruz, fighting for their political lives, relentlessly demeaned and baited Donald Trump at Thursday’s debate, all but pleading with Republicans to abandon a candidate with a long history of business failures, deep ties to the Democratic Party and a taste for personal insults.

Warning that Trump would lead the party to a historic defeat in November, Rubio and Cruz delivered their attacks with urgency, as if trying to awaken voters who had fallen under Trump’s spell. Rubio derided Trump as untrustworthy and uncivil, while Cruz bashed him for donating money to Hillary Clinton’s 2008 presidential campaign and to other Democrats. Trump looked on with disgust, but as in their 10 previous debates, he seemed impervious and perhaps unstoppable.

At times, the faceoff in Detroit also deteriorated into the kind of junior high school taunts that have startled many Republican elders but have done little to dent Trump’s broad appeal.

As Trump and Rubio traded insults over their manhood, Trump recalled Rubio’s innuendo that Trump’s “small hands” correlated with another part of his anatomy.

Trump, who has boasted about his sexual exploits, insisted that nothing was small about him. “I guarantee you,” he continued with little subtlety, “there’s no problem. I guarantee you.”

The two senators repeatedly urged Republicans to align against Trump in nominating contests over the next two weeks, saying that Trump could sew up the nomination even though a majority of voters so far have cast ballots for other candidates.

“Two-thirds of the people who cast a vote in a Republican primary or caucus have voted against you,” Rubio told Trump. “The reason why is because we are not going to turn over the conservative movement or the party of Lincoln or Reagan, for example, to someone whose positions are not conservative.”

The pleas reflected not only Trump’s advantage in the race, but also the party’s growing disquiet about the implications of nominating him. The specter of Trump as the Republican standard-bearer has long troubled both establishment-aligned and conservative leaders. But his initial hesitation to condemn the Ku Klux Klan in an interview Sunday, and his success in seven states on Super Tuesday, have set off a new wave of anxiety that Trump could tarnish the party this year and perhaps beyond.

Still, in a striking moment, all of Trump’s rivals on stage indicated that they would support him if he became the Republican nominee. The consensus was especially unusual in the case of Rubio, who has been caustically attacking Trump as a “con man.”

While Rubio savaged Trump repeatedly Thursday, Cruz combined his jabs with high-minded appeals to conservatives. He emphasized his support for a “simple flat tax” and a strong national defense, trying to position himself ahead of Rubio as the more competitive candidate against Trump.

Cruz also appealed directly to Trump’s supporters by saying that their desire for a political outsider to lead the country was misplaced.

“For 40 years, Donald has been part of the corruption in Washington that you’re angry about,” Cruz said. “And you’re not going to stop the corruption in Washington by supporting someone who has supported liberal Democrats for four decades, from Jimmy Carter to John Kerry to Hillary Clinton.”

“Donald Trump in 2008 wrote four checks to elect Hillary Clinton president,” Cruz added, turning to Trump to demand why he had done so.

“Actually, it was for business,” Trump said, before noting that he had also given to Ronald Reagan and George W. Bush.

Trump found himself on the defensive throughout the night, challenged by his rivals and the Fox News moderators to explain his inconsistent stands in the past. He also had to defend himself against a movement begun earlier Thursday by Mitt Romney, the 2012 Republican nominee, who shredded Trump as a “phony” and a “fraud” who must be blocked from the nomination.

Trump, offered the chance to respond to Romney with harshness or with substance, chose the former.

“He was a failed candidate,” Trump said. “He should have beaten President Obama very easy.”

Cruz and Rubio, who have been grappling for ways to halt Trump’s political momentum, seemed intent on trying to bait him into losing his cool. At one point, as Cruz tarred Trump for donating to Clinton’s 2008 campaign, Trump tried repeatedly to interrupt.

“Count to 10, Donald — count to 10,” Cruz said. Later, in an exchange over Supreme Court nominations, Cruz taunted, “Breathe, breathe, breathe — you can do it.” That prompted Rubio to joke that his two rivals were primed for yoga, especially Trump. “He’s very flexible,” Rubio said, a quip referring to Trump’s changes in political positions.

Rubio tried to get under Trump’s skin by boring in on Trump University, the defunct education and training venture over which Trump is facing civil litigation, alleging that he defrauded students. Recalling that he had spoken to “one of the victims,” Rubio said that what students had gotten in the courses was “stuff you could pull off of Zillow.”

“Why won’t you give them their money back?” Rubio asked.

Trump, who described the litigation as “a minor civil case,” claimed that almost all students who had signed up for the courses “said it was terrific,” but he quickly lost patience with Rubio. Calling him “little Marco” — a phrase he used several times — Trump noted that the senator was losing to him in Florida polls before the state’s March 15 primary.

“The people in Florida wouldn’t elect him dogcatcher,” Trump said.

Rubio, his voice ragged, appeared frustrated at times as he repeatedly sought to sow doubts about Trump. He has been trying for months to catch fire against Trump, whom he holds in low regard on policy matters, and now the Florida primary looms as make-or-break for Rubio’s candidacy.

“You have yet to answer a single serious question about any of this,” Rubio said, referring to Trump’s generalities on foreign affairs. As Trump responded by reiterating praise he had received from President Vladimir V. Putin of Russia, Rubio threw his arms up and turned away in exasperation.

If Trump struggled to deflect the attacks on his character, business sense and political viability against Clinton in the fall, he seized opportunities to reassure conservatives that he would be a forceful commander in chief. Questioned by the moderators about his past advocacy for torture and for killing the families of terrorists, Trump stood firm and argued that “we should go tougher than waterboarding.” Pressed about whether military officers would carry out such orders — killing terrorists’ family members would violate the Geneva Conventions — Trump offered a boast.

“If I say ‘do it,’ they’re going to do it,” he said.

At another point, in a rare concession from Trump, he acknowledged that he was “changing” one of his positions in the highly charged immigration debate and was now open to offering visas for highly skilled foreign workers. He also lamented that foreign citizens “go to the best colleges” in America and “as soon as they are finished, they get shoved out,” and said he was “softening the position because we have to have talented people in this country.”

While his shift could appeal to some business leaders and moderate voters he would need in a general election, his campaign also issued a statement after the debate saying he would “institute an absolute requirement to hire American workers first for every visa and immigration program. No exception.”

Trump’s shifting positions have been a target for months, but during this debate, his rivals received help from the Fox News debate moderators. They played a compilation of video clips in which he was depicted changing his mind on issues like the war in Iraq. Trump was then asked directly if he had “a core.”

“I have a very strong core, but I have never seen a successful person who wasn’t flexible,” Trump said.

One of the most anticipated faceoffs of the night was between Trump and moderator Megyn Kelly, who infuriated the candidate with her aggressive questions at the first Republican debate in August. Kelly and Trump breezily engaged each other Thursday night, but Kelly was pointed if polite in her questioning.

Both Rubio and Cruz repeatedly challenged Trump to release the full transcript of his meeting with The New York Times’s editorial board earlier in the year. BuzzFeed reported this week that Trump, in off-the-record comments, had told the newspaper that he was willing to soften his hard-line immigration views.

But Trump stood his ground, saying he would “never release off-the-record conversations.” Pressed by Cruz, he shot back: “I’ve given my answer, lying Ted. I’ve given my answer.”

The fourth candidate, Gov. John Kasich of Ohio, who has positioned himself as the positive-sounding and seasoned executive in the race, largely stuck to that strategy. But Kasich, who is lagging far behind Trump and the other candidates, struggled to leave a mark in the debate.