Police said the incident began around noon when officers tried to pull over the suspect's car.
But the driver sped away. A passenger in the vehicle got out of the car near East Williams Street at US Highway 1. That person was not involved, police said, and did not pose any threat to the community.
After a short distance, the driver ditched the vehicle and took off running.
While fleeing, police said the suspect crossed through the grounds of Lufkin Middle School.
ALSO SEE | Garner murder suspect accused of shooting Raleigh SWAT officer appears in court
The school was placed on lockdown as a caution.
Officers set up a perimeter -- and eventually took the suspect into custody near Ten Ten Road.
ABC11 is tracking crime and safety across Raleigh and in your neighborhood
Stay on top of breaking news stories with the ABC11 News App