Foreign Secretary Liz Truss has warned Russia it will face "severe economic consequences" if it invades Ukraine.
She said G7 foreign ministers meeting in Liverpool this weekend would put on a show of unity and make clear such a move would be a "strategic mistake".
Ms Truss said the UK and its allies had to "deter Russia from taking that course of action".
Tensions are growing as Moscow amasses troops on Ukraine's border - but the Kremlin has denied it plans to invade.
Reiterating previous warnings from the US and its allies, Ms Truss said the G7 "are going to absolutely be strong in our stance against aggression... with respect to Ukraine".
She added: "If Russia were to take that action, it would be a strategic mistake, and there will be severe consequences for Russia.
"And what we're doing this weekend is working with like-minded allies to spell that out."
Ukraine shares borders with both the EU and Russia, but as a former Soviet republic it has deep social and cultural ties with Russia.
However, Russia has accused Ukraine of provocation, and sought guarantees against eastward Nato expansion and deployment of weapons close to its border.
Ahead of the G7 meeting, Ms Truss held talks with Ukrainian foreign minister Dmytro Kuleba in London.
Asked if she could rule out a military response to Russian aggression, Ms Truss said the UK was working with Ukraine on "defence and security capability".
"We are providing them with support," she said. "We are also working to help them with their energy resilience. So they're not solely dependent on Russian energy supplies. And that is the way ultimately that we will help support Ukraine."
Ms Truss said the UK and EU were trying to ensure Western economies were less dependent on Russian energy.
The foreign secretary said the Nord Stream 2 gas pipeline between Germany and Russia would be "a problem" if Russia invaded Ukraine.
It would be an issue to discuss with her new German counterpart at the G7 talks.
Ms Truss said: "We absolutely need to reduce dependence on Russian gas and energy. And this should be part of an overall strategy of reducing dependence on non market economies, reducing dependence on malign actors, and making sure that the free world is able to have that strategic independence it needs to survive and thrive."
US President Joe Biden and Russian President Vladimir Putin on Tuesday held a virtual summit aimed at reducing tensions in the region.
Mr Biden said he had made it clear to Mr Putin that there would be "economic consequences like none he's ever seen" if he invaded Ukraine.
Additional reporting by Alex Kleiderman
Latest Stories
-
Cucumbers – Making the most of them
5 hours -
Revenue growth to slowdown to GH¢209.3bn in 2025; T-bills will not be restructured – IC Research
6 hours -
Deloitte celebrates end-of-year Thanksgiving Service
6 hours -
Inflation to end 2025 between 10% and 12% – Databank Research
7 hours -
Government’s commitment to fiscal consolidation to remain strong in 2025
7 hours -
ImageBureau, April Communications take theatre to Nsawam Prisons
7 hours -
Bird flu kills 20 big cats at US animal sanctuary
7 hours -
Your peaceful conduct saved the country from tension – Clergymen commend Bawumia
7 hours -
A Nite of 1031 Laughs & Music to provide emergency insurance for patrons
7 hours -
Body found in wheel well of United plane after landing in Hawaii
7 hours -
Ghana Armed Forces dismisses viral audio alleging ammunition transfer
8 hours -
Former Hohoe MP Bernice Adiku Heloo passes on
9 hours -
CODEO calls for re-run of Ablekuma North, Dome Kwabenya parliamentary elections
9 hours -
4,155 cholera cases with 35 deaths recorded by December 23 – GHS
10 hours -
Mothers celebrate arrival of Christmas Day babies at Ridge Hospital
12 hours