It began at 11:00 p.m. Thursday at 60th Street and Lindbergh Boulevard.
According to police, a 56-year-old man was pumping gas at a Gulf station when a man approached him and hit him in the head with a gun.
The 29-year-old suspect then took off in the victim's brand new 2014 Kia Sorrento.
Police responded to the scene. The carjacking victim was taken to the Hospital of the University of Pennsylvania, where he received eight stiches for a head injury.
Two hours later, officers spotted the stolen car near 54th and Chester. They began tailing the suspect..
They tried to stop the car several blocks later, but the suspect sped off, crashing into a parked car.
Police say the suspect got out of the car, and as officers asked him to show his hands, the man reached for his waist.
An officer opened fire. No one was hit. The suspect was taken into custody.
By this time the carjacking victim had been treated for his injury. Police say he was driven to the scene of the arrest and was able to positively identify the man in custody as his attacker.
A full investigation continues.