British Prime Minister Rishi Sunak has backtracked on his plan to skip the COP27 climate summit in Egypt and announced Wednesday that he will in fact join world leaders at the resort town of Sharm El Sheikh. 

"There is no long-term prosperity without action on climate change," Sunak tweeted. "There is no energy security without investing in renewables. That is why I will attend COP27P next week: to deliver on Glasgow's legacy of building a secure and sustainable future."

Sunak initially planned to avoid the summit, citing "pressing domestic commitments," including preparations for the autumn budget, but a government spokesperson had stressed that Britain remained "absolutely committed" to "leading international action to tackle climate change." 

Sharm el-Sheikh, Egypt

General view of a hotel with pools in Egypt's Red Sea resort of Sharm el-Sheikh town as the city prepares to host the COP27 summit next month, in Sharm el-Sheikh, Egypt October 20, 2022. REUTERS/Sayed Sheasha (REUTERS/Sayed Sheasha)

But opposition party leaders and climate critics insisted that Britain could not lead if it was not present, pressuring Sunak to reverse his decision. 

UK TIGHTENS SECURITY OVER HACKING FEARS FROM RUSSIA, CHINA

Former Prime Minister Boris Johnson said on Tuesday that he planned to attend the summit, increasing pressure on Sunak to change course – and he eventually caved. 

Suank climate

Rishi Sunak, then Britain's chancellor of the exchequer, makes a speech at the U.N. climate summit in Glasgow, Scotland, Nov. 3, 2021. (AP Photo/Alberto Pezzal)

Green MP Caroline Lucas called Sunak’s original decision "an embarrassing misstep" and welcomed the "screeching" turnaround, saying it would serve as a "lesson" that "climate leadership matters." 

UK HOME SECRETARY FACES BLOWBACK, CALLS TO STEP DOWN AFTER CALLING MIGRANT CRISIS AN ‘INVASION’

Liberal Democrat climate change spokesperson Wera Hobhouse said the recent U-turn "debacle" showed that "environment is simply not a priority for Rishi Sunak" and insisted he only changed his mind because Johnson planned to attend, The Sun reported. 

Boris Johnson speaks at podium at 10 Downing Street

Prime Minister Boris Johnson speaks outside Downing Street in London, Sept. 6, 2022. (AP Photo/Kirsty Wigglesworth)

Downing Street rejected Hobhouse’s claim, saying Sunak has "always recognized the importance of this summit and indeed tackling climate change more generally." A spokesperson said the prime minister "wanted to make sure" the government made "good progress" on its domestic agenda and felt there was now "sufficient space to make this trip." 

CLICK HERE TO GET THE FOX NEWS APP

The United Kingdom hosted COP26 in Glasgow last year, during which Sunak, then chancellor of the exchequer, called on the private sector to make big investments into green initiatives, such as providing fresh financing to poor countries trying to cope with climate change. He insisted that "public investment alone isn’t enough."