The passenger in a car involved in a 2011 wreck that killed an infant was sentenced on Tuesday to 10 years in prison on criminal trespass and drug possession charges.

Rasahmael Marquise Lewis, 21, offered his plea — which includes his testifying against co-defendant Franklin Leonard James — in return for a deal that sentenced him to spend a year and nine months in jail with the remainder on probation.

Chatham County Superior Court Chief Judge Michael Karpf accepted the plea sentence, which defense attorney James Bryne said would result in Lewis being eligible to leave the Chatham County jail Tuesday.

The probated portion of the sentence includes 100 hours of community service.

Lewis and James, 33, were named in a 25-count indictment stemming from the May 7, 2011, police chase that resulted in their fleeing, running two stop signs and wrecking with another vehicle off Mohawk and Apache avenues on the southside.

A passenger in that second car, Andrea Lovett Mann, then 20, was “over seven months pregnant” at the time, Assistant District Attorney Frank Pennington II said. The mother was taken to the hospital where emergency surgery delivered the baby, who died several days later.

After the wreck, both occupants of the car fled on foot and Lewis entered a nearby house on Queens Retreat, where he attempted to hide before the occupant forced him to leave. That resulted in the criminal trespass charge, Pennington said.

Subsequent reviews led prosecutors to determine that James was the driver, Pennington said. He also was tied to a firearm found in his direction of flight, the prosecutor said.

Prosecutors dismissed all remaining charges against Lewis as part of the plea agreement.

Charges against James remain pending with a Friday court date scheduled.