Energy Secretary Rick Perry has informed President Donald Trump that he intends to step down, the president said Thursday ahead of a campaign rally in Texas.

The resignation notification came just hours after acting White House Chief of Staff Mick Mulvaney told reporters Trump instructed Perry to consider his personal lawyer, Rudolph Giuliani, the lead on all Ukraine policy matters.

[Impeachment panels demand Rick Perry travel, meeting records]

It also comes a day before a Friday deadline for Perry to comply with a House impeachment inquiry subpoena, first issued Oct. 10. The subpoena is seeking documents and communications related to interactions between Trump, Ukrainian officials, a roster of U.S. officials and Giuliani associates.

Perry also reportedly was a key driver in Trump’s Ukraine policy, which prompted House Democrats’ impeachment inquiry.