A man forced a woman into the trunk of her car behind a Wrigleyville apartment and then went on a 22-mile joyride spanning the city before crashing on the South Side, the police say.

The carjacker had a gun when he walked up to the 24-year-old woman around 8:20 p.m. in the 3700 block of North Fremont and directed her to the trunk of a Mazda, according to the police.

With the woman locked in the trunk, he made several stops on the South Side before slamming into a tree just before 10 p.m. in the 11500 block of South Throop and then running off, police said.

The woman was able to get out and call for help and was taken to Christ Medical Center in Oak Lawn to be checked out.

The attack was possibly related to another, similar attack on Feb. 28, police said.