A man who nearly drove into a Prince George’s County police officer who was conducting a traffic stop pleaded guilty to assault Wednesday, county prosecutors said.

Dion Morgan, 27, was in his BMW in a McDonald’s parking lot on Aug. 7, 2012 when a county police officer attempted to stop him for an expired tag, according to John Erzen, spokesman for Prince George’s County State’s Attorney Angela Alsobrooks. As the officer approached after getting out of his car, Morgan accelerated and almost hit him.

As he sped away, Morgan’s car brushed into the police cruiser, causing the officer to jump back into the car to avoid being hit, Erzen said. Police began chasing Morgan but eventually stopped, according to prosecutors. They said he eventually crashed his car in the District. .

Morgan pleaded guilty to second-degree assault, possession of crack cocaine and one count of wearing and carrying a handgun. He is scheduled to be sentenced August 2.

“I am pleased that a dangerous individual has been removed from our streets,” Alsobrooks said. “Mr. Morgan showed a complete disregard for law enforcement and for the laws of our society when he attempted to flee this traffic stop and almost hit a police officer in the process.”