Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A man who hopped a fence near the White House grounds Tuesday, prompting a security lockdown, was fleeing after stealing a woman’s purse, officials said.

The lockdown began at around 4 p.m. and was lifted by around 4:30 p.m. The Secret Service said the White House was placed under a state of lockdown called a "condition yellow."

Tourists were cleared from Lafayette Park, which is directly north of the White House.

A D.C. Fire Department spokesman said a man jumped a fence outside the Eisenhower Executive Office Building, widely known as the Old Executive Office Building, at 17th and G Streets and cut his hand. EMTs responded to treat the man and he was in the custody of the Secret Service.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

An official familiar with the situation said the man took a woman’s purse around 3:45 p.m. on 17th Street near Pennsylvania Avenue and hopped the fence after fleeing and spotting Secret Service Uniformed Division officers.

The Secret Service said the man jumped the fence at the Eisenhower Executive Office Building at 3:55 p.m. and was taken into custody without incident.

It doesn’t appear that the man had any idea he was hopping a fence to the White House complex, the official said.

"Initial investigation indicates the individual was fleeing from the scene of a robbery," the Secret Service said in a statement.

The building is west of the White House, and the man got nowhere near a fence separating that area from the White House grounds. D.C. Fire and EMS said the man was being taken for an evaluation.

Transporting suspected White House fence jumper to nearby hospital for evaluation. Always glad to assist @DCPoliceDept & @SecretService — DC Fire and EMS (@dcfireems) April 26, 2016

On Thanksgiving, a man draped in an American flag scaled a fence at the White House and was arrested. His attorney said he was trying to "deliver a message."

On Sept. 19, 2014, an Army veteran with a folding knife jumped the fence and made it all the way into the East Room of the White House before he was tackled. Officials found rifles, ammunition and a tomahawk in his car.

Omar Gonzalez was sentenced to 17 months in prison in June. Federal prosecutors at his sentencing said he had "a history of encounters with law enforcement where he has described paranoid delusions."

The 2014 incident led to questions about security at the White House. Secret Service Director Julia Pierson resigned.