President Donald Trump's record-breaking turnover in his Cabinet is continuing, as Energy Secretary Rick Perry officially tendered his resignation from his White House post. Perry reportedly informed Trump of his resignation Thursday, and the president confirmed Perry's imminent departure to reporters before a ribbon-cutting ceremony in Texas later that day. “Rick and I have been talking for six months. In fact, I thought he might go a bit sooner. But he’s got some very big plans,” Trump said. The president added that Perry would leave the White House by the end of the year, referring to the energy secretary as a “very good friend of mine.” “I'm going to miss you so much,” Trump told Perry at the event.

Perry's exit comes after months of speculation that the energy secretary was on his way out, which were renewed in the wake of the burgeoning Ukraine scandal. The energy secretary had previously denied the rumors, though, telling reporters October 7, “I’m here. I’m serving.” “They’ve been writing the story that I was leaving the Department of Energy for at least nine months now,” Perry said. “One of these days they'll probably get it right. But it’s not today. It’s not tomorrow. It’s not next month.” Sources cited by Bloomberg, however, suggest the secretary has intended to tender his resignation since even before the current chaos with Ukraine, and the 69-year-old has told friends he wants to earn more money in the private sector before retiring. While a successor to Perry's post has not yet been named, Trump suggested Thursday that he already has a replacement in mind. “We have his successor, we’ll announce it pretty soon,” Trump said. “We’ll be announcing the replacement, and he—I think it’s a he in this particular case— I think he’ll do a fantastic job.”

Unlike so many other members of Trump's cabinet, Perry largely managed to avoid scandal during his tenure at the Department of Energy, which began soon after Trump's inauguration in 2017. Despite famously having called for the agency to be eliminated—and forgetting its name—as a presidential primary candidate, the energy secretary even oversaw the agency's expansion, with the New York Times noting that the agency's budget was expanded by nearly 25% while Perry was in office. Yet Perry has more recently gotten wrapped up in the Trumpworld drama, becoming one of the White House officials to be embroiled in the ongoing Ukraine saga. The cabinet secretary, along with Ambassador to the European Union Gordon Sondland and former U.S. special envoy to Ukraine Kurt Volker, was reportedly one of the “three amigos” who became responsible for the administration's agenda in Ukraine, and Perry's trip to Ukraine for President Volodymyr Zelensky's inauguration was cited in the whistle-blower report. In an interview with the Wall Street Journal Wednesday, Perry said that he had reached out to Rudy Giuliani about Ukraine at Trump's request. “As I recall the conversation, [Giuliani] said, ‘Look, the president is really concerned that there are people in Ukraine that tried to beat him during this presidential election,’” Perry told the Journal. “ ‘He thinks they’re corrupt and . . . that there are still people over there engaged that are absolutely corrupt.’” “I don’t know whether that was crap or what,” Perry added about Giuliani's claims. Trump has also personally dragged Perry into the Ukraine mess, claiming to House Republicans that he had made his infamous July 25 phone call with Zelensky at Perry's request.

Perry's role in the Ukraine saga and resulting impeachment inquiry likely won't end with his resignation. The secretary faces a Friday deadline to comply with a House subpoena for documents related to Ukraine, and Democratic lawmakers are particularly interested in having Perry testify about his role in the administration's Ukrainian campaign, particularly in the wake of his resignation. While the soon-to-be private citizen has so far demurred about whether he'll participate in the probe, saying he would follow the direction of the Energy Department and White House counsel, sources cited by Politico say Perry “may cooperate as a way to salvage his reputation before he departs.” “For the most part, he has a lot to lose by getting embroiled in this and he’s not going to want to hide things,” a source in the energy industry close to the administration told Politico Thursday. “He’s going to want to extract himself as cleanly as he can from this snare.”

More Great Stories from Vanity Fair

— How one industry is bleeding Wall Street dry of talent

— Ronan Farrow’s producer reveals how NBC killed its Weinstein story

— Ivanka’s $360 million deal is raising eyebrows at the FBI

— The big turn for Elizabeth Warren’s campaign

— Why a leading neurocriminologist left Joker completely stunned

— The Fox News movie’s uncanny depictions of the network’s drama

— From the Archive: The real-life story of the security guard turned bombing suspect at the heart of Clint Eastwood’s latest movie

Looking for more? Sign up for our daily Hive newsletter and never miss a story.