A man carrying a knife was arrested outside the White House after he told a US Secret Service officer that he was there to kill President Donald Trump, police said.

Roger Hedgpeth, 25, was arrested Saturday afternoon on a charge of making threats to do bodily harm, the Metropolitan Police Department said.

Hedgpeth approached a Secret Service officer who was patrolling outside the White House and said he was there to 'assassinate' Trump.

Roger Hedgpeth, 25, was arrested outside the White House (file image) after he told a US Secret Service officer that he was there to kill President Donald Trump, police said

'I have a knife to do it with,' Hedgpeth allegedly said, according to a police report.

Police found a 3 1/2-inch knife in a sheath on his left hip.

Hedgpeth, of Brandon, Florida, also had an empty pistol holster on his right hip, authorities said.

Authorities described Hedgpeth in the report as a 'critically missing/endangered person as well as a mental health consumer'.

It's unclear how long Hedgpeth was missing or how he managed to get to Washington, DC.

Hedgpeth was taken into custody and brought to a hospital for a mental health evaluation, police said. Officers also impounded his vehicle.

A telephone number listed for Hedgpeth in public records was unanswered on Sunday.

According to the president's (pictured on Friday) calendar, he didn't have any appearances outside of the White House and is believed to have been there at the time of the incident

It wasn't immediately clear where he lives or whether he had an lawyer who could comment on his behalf.

According to the president's calendar, he didn't have any appearances outside of the White House and is believed to have been there at the time of the incident.

Over the past few years, there have been multiple incidents of people being arrested outside the White House.

A California man carrying mace was arrested in March 2017 after scaling the fence and making it all way to the exterior of the White House. Trump was in the White House at the time.

In September 2018, an individual was taken into custody after they climbed over the security barrier outside the White House.

And in November 2019, a person was taken into custody after they allegedly attempted to drive an unauthorized vehicle through a White House security checkpoint.

Incidents like these prompted White House officials to upgrade the fence that surrounds the presidential mansion from the six foot version to one that will be 13 feet high with 'anti-climb' technology.