Trump Picks Energy Department Opponent Rick Perry for Energy Secretary: Sources

Former Texas Gov. Rick Perry leaves after a meeting with US President-elect Donald Trump at Trump Tower December 12, 2016 in New York.
Kena Betancur | AFP | Getty Images
Former Texas Gov. Rick Perry leaves after a meeting with US President-elect Donald Trump at Trump Tower December 12, 2016 in New York.

President-elect Donald Trump has selected former Texas Gov. Rick Perry — who famously once forgot that he wanted to abolish the Energy Department — to be secretary of energy, two sources familiar with the transition process told NBC News on Monday night.

Perry, a rival of Trump's during the Republican presidential nominating campaign, met with Trump for about 90 minutes earlier in the day at Trump Tower in New York.

Perry dropped out of the race and endorsed Sen. Ted Cruz, a fellow Texan. Before he left the race, he denounced Trump's candidacy as "a cancer on conservatism" and criticized Trump, himself, as a "barking carnival act."

More from NBC News:
Pipeline Spills Oil 150 Miles From Dakota Access Protests
President-Elect Trump Rejects Analysis of Russia Behind Election Hacks
Why the CIA Thinks Russia Wanted Trump to Win

By May, however, as it became clearer that Trump was likely to win the Republican nomination, Perry had retreated from his criticism, saying that "I will be open to any way I can help" and that "I believe that Donald Trump should be our guy."

Perry also ran for president in 2012, which led to a gaffe during a debate in November 2011 in which he forgot that he'd named the Energy Department — the agency Trump now wants him to head — as one of three Cabinet departments he'd eliminate. The memory loss became known as Perry's "oops" moment.

As governor, Perry championed the oil industry, questioning science that shows that greenhouse gas emissions contribute to climate change and deriding what he called "the secular carbon cult."

At a presidential town hall in 2011, he said, "I think there are a substantial number of scientists who have manipulated data so that they will have dollars rolling into their projects."

Follow CNBC International on Twitter and Facebook.