(CNBC) Labor Secretary Alex Acosta said Friday he will resign amid controversy over the way he handled a sex crimes case against wealthy businessman Jeffrey Epstein a decade ago when he was U.S. attorney for southern Florida.

Acosta made the announcement to reporters while standing next to President Donald Trump outside the White House. Trump said that Acosta had called him Friday morning, and that it was Acosta’s decision to quit.

“This was him, not me, because I’m with him,” Trump said in a lengthy exchange with the press before departing the White House en route to events in Wisconsin and Ohio. “I said, ‘You don’t have to do this.’”

Note: Read our discussion guidelines before commenting.