A police officer was hospitalized Wednesday afternoon with minor injuries after police say an SUV rammed his squad car on purpose while he was following another SUV believed to be stolen.

The officer was following the stolen black Jeep Wrangler on Welsh Road near Craig Street in Holmesburg around 1:45 p.m., cops said, when a white Jeep intentionally hit the back of his car. Both SUVs fled the scene, according to cops.

The officer was taken to Aria Health's Torresdale Campus to be treated for neck pain, police said.

Police later found the stolen black Jeep Wrangler unoccupied about two blocks from where the officer's car was hit, and the white Jeep that allegedly did the ramming in neighboring Holme Circle, also unoccupied.

Police arrested two men in connection with the incident and Holme Avenue and Arthur Street, a few blocks from where the ramming SUV was found.

The injured officer was expected to be treated and released.