Image copyright Getty Images

US Secretary of Energy Rick Perry, who has been drawn into the Trump impeachment inquiry, will resign.

President Donald Trump has confirmed the former Texas governor will depart his administration.

Mr Perry's exit had been rumoured for months even before he became entangled in a controversy over Ukraine.

US lawmakers are scrutinising Mr Perry's role in efforts to pressure Ukraine's president to investigate Mr Trump's political rival, Joe Biden.

At an event in Texas, Mr Trump said: "He's [Rick Perry] been outstanding and we already have his replacement, Rick has done a fantastic job at energy.

"But it was time, three years is a long time, and he'll be leaving towards the end of the year."

Mr Trump followed up on Friday by thanking Mr Perry for his "outstanding work" and naming his deputy, Dan Brouillette, as the new energy secretary.

Skip Twitter post by @realDonaldTrump I want to thank Secretary of Energy Rick Perry for the outstanding job he has done. He will be leaving at the end of the year to pursue other interests. Rick was a great Governor of Texas and a great Secretary of Energy.... — Donald J. Trump (@realDonaldTrump) October 18, 2019 Report

Skip Twitter post 2 by @realDonaldTrump ....He is also my friend! At the same time, I am pleased to nominate Deputy Secretary Dan Brouillette to be the new Secretary of Energy. Dan’s experience in the sector is unparalleled. A total professional, I have no doubt that Dan will do a great job! — Donald J. Trump (@realDonaldTrump) October 18, 2019 Report

Mr Perry was one of three US officials - dubbed the Three Amigos - who had influence over US policy on Ukraine.

On Wednesday, Mr Perry refused to say whether he would comply with a subpoena from Democratic impeachment investigators in Congress who are probing whether Mr Trump illegally sought to have Ukraine open an investigation into Democratic presidential candidate Joe Biden.

In a 2011 campaign for the presidency, during a live TV debate, Mr Perry forgot the name of a government department that he planned to abolish.

The name of the agency that had slipped his mind was the energy department.

But as Trump energy secretary, he presided over a significant expansion of the department's budget, while championing a surge in US fossil fuel output.

During the 2016 election season Mr Perry's hopes once again quickly fizzled.

He had called Mr Trump's candidacy "a cancer on conservatism", only to ultimately join his administration.