Trump Names Rick Perry as Pick for Energy Secretary

Perry wanted to eliminate the department but couldn't name it in a 2011 debate.

Praising Perry's gubernatorial experience, Trump said Perry would "do an amazing job" in his new role.

Perry said in a statement that he was "humbled" by Trump's trust in him.

This newly expressed mutual admiration comes nearly a year and a half after a contentious primary season in which Perry and Trump ran against each other. Perry was one of the first in the 2016 race to attack Trump, calling him a "cancer on conservatism."

ABC News' Arlette Saenz contributed to this report.