Sen. Ted Cruz speaks with his wife, Heidi, by his side during a primary night campaign event in Indianapolis. Cruz ended his presidential campaign, eliminating the biggest impediment to Donald Trump’s march to the Republican nomination.

May 3, 2016 Sen. Ted Cruz speaks with his wife, Heidi, by his side during a primary night campaign event in Indianapolis. Cruz ended his presidential campaign, eliminating the biggest impediment to Donald Trump’s march to the Republican nomination. Darron Cummings/AP

The Texas Republican was the first major presidential candidate to formally declare a bid.

The Texas Republican was the first major presidential candidate to formally declare a bid.

Republican presidential candidate Ted Cruz is close to ensuring that Donald Trump cannot win the GOP nomination on a second ballot at the party’s July convention in Cleveland, scooping up scores of delegates who have pledged to vote for him instead of the front-runner if given the chance.

The push by Cruz means that it is more essential than ever for Trump to clinch the nomination by winning a majority of delegates to avoid a contested and drawn-out convention fight, which Trump seems almost certain to lose.

The GOP race now rests on two cliffhangers: Can Trump lock up the nomination before Cleveland? If not, can Cruz cobble together enough delegates to win a second convention vote if Trump fails in the first?

Trump’s path to amassing the 1,237 delegates he needs to win outright has only gotten narrower after losing to Cruz in Wisconsin and other recent contests, and it would require him to perform better in the remaining states than he has to this point.

In addition, based on the delegate selections made by states and territories, Cruz is poised to pick up at least 130 more votes on a second ballot, according to a Washington Post analysis. That tally surpasses 170 delegates under less conservative assumptions — a number that could make it impossible for Trump to emerge victorious.

This summer's political conventions could get heated – but it certainly wouldn't be the first time. (Peter Stevenson/The Washington Post)

That is why the race centers on the fevered hunt for delegates across the country. The intensity of the fight has sparked another round of caustic rhetoric — including allegations from party leaders that Trump supporters are making death threats.

“It’s unfortunate politics has reached a new low. These type of threats have no place in politics,” said Kyle Babcock, a Republican delegate from Indiana’s 3rd Congressional District. He received an email from a Trump supporter who warned, “Think before you take a step down the wrong path.”

[The art of the steal: Dealmaker Trump struggles with the GOP delegate race]

Cruz’s chances rest on exploiting a wrinkle in the GOP rule book: that delegates assigned to vote for Trump at the convention do not actually have to be Trump supporters. Cruz is particularly focused on getting loyalists elected to delegate positions even in states that the senator from Texas lost.

On Wednesday in Indiana, for example, Republican leaders were finalizing a delegate slate that will include party activists unlikely to vote for Trump in the state’s primary next month. Cruz also is poised to sweep Wyoming’s 26 delegates this weekend in a state where Trump’s campaign did not seriously compete. In Arkansas, Cruz supporters are exploring ways to topple Trump when delegates are chosen next month. And Sen. Marco Rubio (R-Fla.) has refused to release 171 delegates he won when he was in the race, signaling that he may contribute to the anti-Trump push in Cleveland.

Cruz said this week that he thinks the odds of a contested convention are “very high.”

“In Cleveland, I believe we will have an enormous advantage,” he told radio talk-show host Glenn Beck.

1 of 45 Full Screen Autoplay Close Skip Ad × Trump captures the nation’s attention on the campaign trail View Photos The Republican candidate continues to dominate the presidential contest. Caption Businessman Donald Trump officially became the Republican nominee at the party’s convention in Cleveland. Donald Trump speaks at a campaign event at Trump Doral golf course in Miami. Carlo Allegri/Reuters Buy Photo Wait 1 second to continue.

Trump has a commanding lead in total delegates and the overall vote total, but he has complained that Republican leaders are conspiring against him in a bid to silence his supporters.

“The RNC should be ashamed of itself for allowing this to happen,” Trump said Tuesday night while campaigning in Rome, N.Y.

Paul Manafort, a senior adviser to Trump, said in an interview that he is confident Cruz will never have a chance to convert Trump delegates.

“Just because [Cruz] has won some delegates in a state where we have the delegates voting for us is not relevant until and unless there’s a second ballot,” Manafort said. “There’s not going to be a second ballot.”

[Trump team vows to win delegate majority as rivals prepare for open convention]

As the battle for delegates has intensified, so too have emotions. Craig Dunn, who was elected Saturday as a Republican delegate from Indiana’s 4th Congressional District, said he has received several threatening phone calls and emails after criticizing Trump in recent news reports.

“When they reference burials and your family in the same email, and telling you that you’re being watched, that’s concerning,” he said.

In Colorado, Republicans are planning a rally Friday to call attention to threats made against GOP chairman Steve House. He said his office received 3,000 phone calls “with many being the trashiest you can imagine” after a state party convention last weekend awarded all 34 delegates to Cruz.

“Shame on the people who think somehow that it is right to threaten me and my family over not liking the outcome of an election,” he wrote on Facebook.

Cruz told Beck on Tuesday that threats made by Trump supporters, including those made by the businessman’s longtime confidant Roger Stone, are “the tactic of union thugs. That is violence. It is oppressive.”

Stone recently told an interviewer that Trump supporters would track down delegates at their hotel rooms in Cleveland if they break away from Trump.

Manafort said that “it’s certainly not part of our policy” to threaten violence but accused “abusive” Cruz supporters of confronting Trump’s backers at party meetings nationwide.

When the presidential nomination vote is held at the convention, 95 percent of the delegates will be bound to the results in their states for the first vote, giving Trump his best shot at securing a majority.

But if Trump falls short, the convention will cast a second ballot in which more than 1,800 delegates from 31 states — nearly 60 percent of the total — will be unbound and allowed to vote however they want. By the third round, 80 percent of the delegates would be free, sparking a potential free-for-all that could continue for several more rounds.

That is the crux of the state-by-state battle that is playing out over the next two months as Republicans gather at the precinct, county, congressional district and statewide levels to choose convention delegates.

“If we go into a contested convention, we’re going to have a ton of delegates, Donald is going to have a ton of delegates, and it’s going to be a battle in Cleveland to see who can earn a majority of the delegates that were elected by the people,” Cruz told a meeting of the Republican Jewish Coalition in Las Vegas on Saturday.

He predicted that the first ballot “will be the highest vote total Donald Trump receives. And on a subsequent ballot, we’re going to win the nomination.”

[With an Orthodox focus, Ted Cruz reaches out to Jewish donors and voters]

If Cruz prevails, it will be because of what supporters are doing for him nationwide with what they say is little direct input from his campaign headquarters.

In Arkansas, Republicans will not meet until next month to finalize their delegate slate, but state lawmakers who probably will win a position are talking about voting for Cruz on the second ballot.

“For the vast majority of Cruz voters, Rubio was their second choice, and for the vast majority of Rubio supporters, Cruz was their second choice. So when you’re going to pick delegates, it just makes sense that we would work together,” said state Sen. Bart Hester, who backed Rubio.

In Iowa, Cruz won 11 of the 12 delegates assigned last weekend — meaning that he probably will have their support in later rounds of balloting. That same day in South Carolina, Cruz secured three of the six delegate slots assigned by two congressional districts that Trump had easily won.

“There’s nothing underhanded going on,” said Elliott Kelley, one of the Cruz supporters who won in South Carolina’s 3rd Congressional District. “Delegates are being appointed from the local level. The Trump team just doesn’t have people involved at the local level and they’re not getting delegates.”

Cruz supporters also won two of the three delegate slots from Virginia’s southernmost congressional district even though Trump won there handily. One of those Cruz supporters is Kyle Kilgore, 22, who said he would vote for Trump on the first ballot as required.

“I would have a hard time voting for Trump on the second ballot,” he said.

In Indiana, Dunn will be required to initially vote for whoever wins his congressional district in May. If Trump fails in the first round, Dunn said he probably will vote for Ohio Gov. John Kasich on a second ballot.

“I’ll be looking for the candidate who I think has the best chance of beating Hillary Clinton in November,” Dunn said. “And if the person I want doesn’t get it, I won’t take my marbles and go home; I will support the nominee of the Republican Party.”

Alice Crites, Jose A. DelReal, Sean Sullivan and Katie Zezima contributed to this report.