Image copyright AP Image caption Mr Kasich only won his home state, Ohio, in primary elections

Ohio Governor John Kasich has dropped out of the presidential race after struggling to gain traction against Republican front-runner Donald Trump.

"As I suspend my campaign today I have renewed faith, deeper faith that the Lord will show me the way forward," he told supporters in Columbus.

Mr Kasich only won his home state but had hoped to lobby for his candidacy at the Republican convention in July.

Mr Trump holds a commanding lead and is closing in on the nomination.

His likely opponent will be Democratic front-runner Hillary Clinton, who lost the Indiana primary to Bernie Sanders.

It was a surprise win for the Vermont senator who continues to attract huge crowds to his rallies, but his opponent has an almost insurmountable lead in votes and delegates.

Speaking to CNN about taking on Mr Trump, Mrs Clinton said he was a "loose cannon" who had run a "negative, bullying" campaign.

The New York businessman has made a series of controversial remarks ever since he launched his White House bid by labelling Mexicans as rapists and criminals.

Several senior Republicans said on Wednesday they would not back him, with some saying they would prefer to vote for Mrs Clinton.

Trump nomination divides Republicans

Media playback is unsupported on your device Media caption Kasich spoofs Star Wars in anti-Trump ad

Media playback is unsupported on your device Media caption Leading Republican explains why he's going to back Trump

Analysis - Anthony Zurcher, BBC North America reporter

Image copyright Reuters Image caption Mr Kasich (centre) had struck an alliance with Ted Cruz, who has also dropped out

The race for the Republican presidential nomination has taken more than a year to unfold, but in a flash it is over.

Ted Cruz's withdrawal from the race on Tuesday night meant John Kasich's long-shot path to the nomination - deadlocked delegates in a contested convention turning to him as a compromise candidate - was definitively closed.

The Ohio governor, once thought to be the saviour of the moderate, establishment wing of the Republican Party, could have soldiered on, but with little money and no hope of winning, such a course bordered on the absurd.

Although Mr Trump had effectively sewn up the nomination regardless of what Mr Kasich decided to do, his withdrawal does have one benefit. Now the New York businessman will not have to make even pro forma campaign stops in California, which holds its primary on 6 June.

Just last week the front-runner faced massive protests while attending the state's Republican convention. California looked to be a powder keg for Mr Trump in the coming weeks. Thanks to Mr Kasich, it has been defused.

Texas Senator Ted Cruz dropped out of the race on Tuesday after losing heavily to Mr Trump in the Indiana primary.

It is now certain Mr Trump will have the 1,237 delegates needed to become the nominee before the July convention in Cleveland, Ohio.

Mr Kasich had been widely seen as the most moderate and electable Republican candidate but this did not garner him enough support among Republican primary voters.

Republicans are now divided over whether to support Mr Trump as the Republican nominee.

"If we nominate Trump, we will get destroyed... and we will deserve it," South Carolina Senator Lindsay Graham said on Tuesday.

Mr Kasich's named has been floated as a possible vice presidential pick but he has denied that he would accept it..

More on the Trump campaign

26 things that Donald Trump believes

What a President Trump would do round the globe

Donald Trump: From mogul to candidate

Trump's disastrous women voter problem

The 40-year hurt behind Trump rise

Your browser does not support the iframe HTML tag. Try viewing this in a modern browser like Chrome, Safari, Firefox or Internet Explorer 9 or later.

Full US election coverage from the BBC