A former U.S. Marine Corps recruiter was sentenced to 10 years in prison in Southern California's Riverside County after pleading guilty to child sex charges.

Prosecutors say former staff Sgt. Bryan Damone Cunningham pleaded guilty Friday to felony charges of committing lewd acts and sodomy with a child under 14.

The girl told police she met Cunningham online and had sex with him and two other men. She also told police Cunningham wanted her to work as a prostitute and had tried to take her to Los Angeles County against her will.

Cunningham could have faced life in prison if convicted of a kidnapping for rape charge, in addition to an attempted pimping charge and two other felonies that the district attorney's office agreed to dismiss.