Boris Johnson has urged Western allies to stand firm over Ukraine as he sought to put his domestic political difficulties to one side.

The Prime Minister met counterparts at the G7 summit in Germany on the latest leg of a series of international summits which have kept him out of the UK as questions mount over his leadership.

Mr Johnson was at a Commonwealth meeting in Rwanda as the Conservatives learned they had lost the by-elections in Tiverton and Honiton and Wakefield, and he is not expected to return to the UK until after a Nato summit in Madrid concludes on Thursday, meaning his ability to reassure wavering MPs – or snuff out Westminster plots against him – will be diminished.

But he will hope appearing on an international stage, focusing on the biggest war in Europe since the defeat of the Nazis, will persuade doubters that it is not the right time to consider a change in leadership in the UK.

Amid speculation about the appetite of Western leaders to continue to support Ukraine during a prolonged conflict, Mr Johnson said Vladimir Putin must not be allowed to “hack” Russia’s neighbour apart with impunity.

G7 Summit
Prime Minister Boris Johnson greets French President Emmanuel Macron at the G7 summit (Stefan Rousseau/PA)

Ahead of a meeting with French President Emmanuel Macron, Mr Johnson was asked whether France and Germany are doing enough over Ukraine.

The PM praised the Germans without mentioning France.

“Just look at what the Germans alone have done,” he said.

“I never believed in my lifetime that I would see a German chancellor stepping up in the way that Olaf Scholz has and sending weaponry to help the Ukrainians to protect themselves.

“He’s made huge, huge strides. We have 4% of our gas from Russia, in Germany it’s 40%.

“They’re facing real, real pressures, they’re having to source energy from elsewhere. But they’re doing it. They’re making the effort. They’re making the sacrifice.”

Boris Johnson
Boris Johnson has been in Rwanda and now Germany, and will also travel to Spain this week (Stefan Rousseau/PA)

He said the Germans realise “the price of freedom is worth paying”, despite the domestic consequences.

Mr Johnson added: “The consequences of what’s happening for the world are tough, but the price of backing down, the price of allowing Putin to succeed, to hack off huge parts of Ukraine, to continue with his programme of conquest, that price will be far, far higher and everybody here understands that.”

In talks with Mr Macron, the Prime Minister “stressed any attempt to settle the conflict now will only cause enduring instability and give Putin licence to manipulate both sovereign countries and international markets in perpetuity”.

Earlier this month, Mr Macron insisted it would be for Ukraine to decide the terms of any peace negotiation with Mr Putin, having previously suggested Russia must not be humiliated.

G7 Summit
G7 leaders pose for an informal family photo following their working session dinner during the G7 summit in Schloss Elmau, in the Bavarian Alps, Germany (Stefan Rousseau/PA)

Downing Street played down any talk of a rift between the two leaders and they appeared to be enjoying themselves as the G7 chiefs unwound over a working dinner and jazz concert on Sunday night.

Mr Johnson and Mr Macron were spotted with arms around each other drinking Bavarian whisky after formal talks ended.

In talks with Canada’s Justin Trudeau, Mr Johnson said: “Ukraine is on a knife-edge and we need to tip the balance of the war in their favour.

“That means providing Ukraine with the defensive capabilities, training and intelligence they need to repel the Russian advance.”

Ukraine’s president Volodymyr Zelensky will address the summit by video-link on Monday.

In his nightly video address on Saturday, Mr Zelensky said repeated Russian missile strikes show the need for more advanced defensive equipment.

He said: “I will take part in the G7 summit on Monday. The Nato summit will take place next week.

“Forty-five missiles in half a day and just on the eve of such meetings. All clear. Another confirmation of our position.

“This confirms that sanctions packages against Russia are not enough, that Ukraine needs more armed assistance, and that air defence systems – the modern systems that our partners have – should be not in training areas or storage facilities, but in Ukraine, where they are now needed.”

While the G7 leaders met in the luxury Schloss Elmau hotel, their partners – including Carrie Johnson – were escorted on a hike around the picturesque Ferchensee lake.