The appearance lasted approximately 14 minutes, during which she largely relied on prepared remarks and answered questions from just three media outlets: Breitbart, Fox News and the Daily Mail.
The limited question-and-answer session attracted criticism, with observers questioning her readiness for the role and the decision to restrict questions to a small selection of outlets.
Zacharia later defended her performance in an interview with Fox News host Sean Hannity, saying she had received limited preparation time before her first briefing.
She said she had done her best despite having been in the position for only a short period.
Scrutiny intensified after questions emerged about Zacharia’s description as an attorney.
Trump had referred to her as an attorney when announcing her appointment. Zacharia holds a law degree from Pepperdine University in California but acknowledged in an interview with Hannity that she had not passed the bar examination.
Passing a state bar examination and meeting other applicable requirements are generally necessary to become licensed to practise law in the United States.
Her admission prompted further questions about how her qualifications had been presented and assessed before she was appointed to one of the administration’s most visible communications roles.
Trump addressed the controversy on Friday, saying Zacharia had been treated unfairly by the media and expressing concern about the pressure she had faced.
“I don’t think Katie should be made to suffer like she’s suffering at the hands of the press,” Trump told reporters, according to published reports.
He said he had encouraged her to reconsider the position, adding that he wanted her to be happy.
A White House official subsequently confirmed that Zacharia was leaving the role, with Fox News reporting that she was “transitioning out” of the position.
Trump indicated he was not in a hurry to appoint a replacement.
Before joining the White House, Zacharia worked in conservative political commentary and communications, including appearances on television news programmes.
Her departure comes at a significant time for the Trump administration, with the November midterm elections approaching and Republicans seeking to maintain their congressional majorities.
The press secretary serves as a key public representative of the president, answering questions from journalists and communicating the administration’s positions on domestic and international issues.
Zacharia’s five-day tenure has drawn attention to the challenges of the role and the scrutiny facing officials appointed to speak on behalf of the president.
The White House has not yet publicly detailed what position, if any, Zacharia may take up next.