An Uber driver has been arrested after hitting a Secret Service officer with his car.

The driver, who has not been named, struck the officer who was blocking a street for Donald Trump's motorcade to make its return from the hospital where shot congressman Steve Scalise was receiving treatment.

The uniformed officers was stationed near the corner of 15th Street NW and Pennsylvania Avenue, when the driver ignored instructions not to turn onto the street, CNN reports.

A Secret Service officer (not pictured) was hit by an Uber driver on Wednesday night while trying to block a road for Donald Trump's motorcade. Trump is pictured leaving the MedStar Hospital, flanked by security

A Secret Service spokesperson said the officer was hit and went up onto the hood of the Mazda SUV.

The officer was then taken to a nearby hospital and treated for minor injuries.

The driver, CNN reports, was arrested and charged with 'failure to obey and assault with a dangerous weapon-vehicle.'

An armored SUV, transporting President Donald Trump and first lady Melania Trump, is seen outside the hospital. Trump's motorcade was heading back to the White House Wednesday when the Secret Service officer was hit

After being booked, he told officers he was paying attention to another car and did not notice the Secret Service member.

A law enforcement source told CNN the man behind the wheel was an Uber driver. It is not known if there was anyone else in the car at the time of the incident.

The driver has no outstanding warrants, and was scheduled to appear in court Thursday charged with failure to obey.