Bloomberg/Getty Images/Associated Press
Now playing
01:48
Trump asked Perry, State Dept. officials to work with Guiliani on Ukraine
capitol officer
CNN
capitol officer
Now playing
03:40
'I felt like they were trying to kill me': Police officers to testify during hearing
Church of Glad Tidings
Now playing
01:16
Reporter calls out Flynn's comment after being given an AR-15
Now playing
03:13
'Pure nonsense': Deconstructing common myths about the vaccine
US President Joe Biden waves as he participates in a CNN Town Hall hosted by Don Lemon at Mount St. Joseph University in Cincinnati, Ohio, July 21, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
SAUL LOEB/AFP/AFP via Getty Images
US President Joe Biden waves as he participates in a CNN Town Hall hosted by Don Lemon at Mount St. Joseph University in Cincinnati, Ohio, July 21, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
Now playing
02:17
See what Biden said about today's infrastructure vote
CNN/Getty Images
Now playing
02:50
Carl Bernstein: Trump is our own American war criminal
CNN
Now playing
02:19
Tapper presses Republican on GOP resistance to January 6 probe
Now playing
01:35
Republican governor balks at Covid-19 mandates as state's cases soar
Dr. Fauci NIH research China Tapper sotu vpx _00023404.png
CNN
Dr. Fauci NIH research China Tapper sotu vpx _00023404.png
Now playing
03:13
Dr. Fauci weighs in on if US should collaborate with Wuhan labs in future
Pool
Now playing
02:06
WaPo: This is what Trump's PAC is spending its money on
CNN
Now playing
02:04
AZ lawmaker says audit 'not about Trump.' Her emails show otherwise
Getty Images
Now playing
01:55
'Almost giddy': Author describes Trump during Capitol riot
Florida Gov. Ron DeSantis, center, speaks during a news conference at West Miami Middle School in Miami on Tuesday, May 4, 2021.
Matias J. Ocner/Miami Herald/AP
Florida Gov. Ron DeSantis, center, speaks during a news conference at West Miami Middle School in Miami on Tuesday, May 4, 2021.
Now playing
02:20
Florida Gov. Ron DeSantis blames this for surge in cases
CNN
Now playing
03:31
'I got elected to shake things up': Lightfoot on time as mayor
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
01:21
Pelosi explains why she rejected GOP lawmakers from January 6 committee
WASHINGTON, DC - JULY 20: U.S. President Donald Trump talks to reporters with Vice President Mike Pence in the Oval Office at the White House July 20, 2020 in Washington, DC. Trump hosted Republican Congressional leaders and members of his cabinet to talk about a proposed new round of financial stimulus to help the economy during the ongoing global coronavirus pandemic.  (Photo by Doug Mills-Pool/Getty Images)
Pool/Getty Images North America/Getty Images
WASHINGTON, DC - JULY 20: U.S. President Donald Trump talks to reporters with Vice President Mike Pence in the Oval Office at the White House July 20, 2020 in Washington, DC. Trump hosted Republican Congressional leaders and members of his cabinet to talk about a proposed new round of financial stimulus to help the economy during the ongoing global coronavirus pandemic. (Photo by Doug Mills-Pool/Getty Images)
Now playing
06:43
Trump shares disappointment with Pence in new audio recording
Washington CNN —  

Energy Secretary Rick Perry said on Thursday that he plans to leave his post later this year after he informed President Donald Trump of his intention to resign.

Perry said in a YouTube video posted Thursday night that he planned to announce his resignation, without giving an exact date. Bloomberg was first to report on Perry’s resignation.

“There is much work to be done in these upcoming weeks and I remain fully committed to accomplishing the goals that I set out to accomplish at the beginning of my tenure,” Perry said in the video.

Perry has found himself as one of the players in the middle of the controversy stemming from a whistleblower’s allegation that Trump asked Ukrainian President Volodomyr Zelensky to investigate former vice president and 2020 Democratic presidential candidate Joe Biden and his son, and that the White House attempted to cover up the conversation. There is no evidence of wrongdoing in Ukraine by either Biden.

Word of Perry’s resignation came as Trump traveled to Texas for a rally on Thursday evening. Upon arrival, the President told reporters that he had accepted Perry’s resignation.

“He’s been outstanding,” Trump said. “Rick has been with me three years … and he’s been outstanding.”

Trump said he knew who he wanted to name as Perry’s placement and teased announcing it during Thursday’s rally.

Perry’s resignation comes amid scrutiny over his role in the Trump administration’s dealings with Ukraine. White House acting chief of staff Mick Mulvaney confirmed Thursday that the President asked Perry to work with Trump’s personal lawyer, Rudy Giuliani, on policies related to Ukraine, but Mulvaney denied that their work was part of a “shadow foreign policy” effort. Perry was one of the “three amigos” leading US relations with the country, meeting three times with Zelensky.

Perry told the Wall Street Journal Wednesday that he spoke with Giuliani at the President’s direction this spring about alleged Ukrainian corruption.

Perry told the newspaper that Giuliani didn’t make explicit demands on the call, but did blame Ukraine for the Steele dossier about Trump’s alleged ties to Russia, claimed the country had former Secretary of State Hillary Clinton’s email server and linked Ukraine to unfounded evidence that helped send former Trump campaign chairman Paul Manafort to prison.

Perry also disputed claims that he was planning to leave the administration. At the time, he wouldn’t state if he was planning to stay in his role past Thanksgiving. He faces a deadline Friday to comply with a congressional subpoena as part of the ongoing impeachment inquiry.

Multiple people associated with Trump inside and outside the administration told CNN that the energy secretary was among those engaged in efforts to change leadership at Naftogaz, Ukraine’s geopolitically important state-owned oil and gas company.

During his May trip to Kiev for Zelensky’s inauguration, Perry delivered a list of four candidates to replace the existing American member of Naftogaz’s international supervisory board, according to a source familiar with Perry’s conversations.

Perry’s goal, the former official believed, was to replace the current American representative, Amos Hochstein, with someone more known and favorable in Republican circles.

CNN’s Paul LeBlanc, Michael Warren and Rene Marsh contributed to this report.