A Casper man will spend time behind bars in a case in which he's accused of having sex with a teenager and providing her marijuana.

Twenty-six-year-old Fernando Lopez was sentenced to 10-to-17 years at the Wyoming State Penitentiary, after entering an Alford plea on one charge of second degree sexual assault of a minor and one count of distribution of a controlled substance to a minor.

The victim told police she had met Lopez in June at the Wyoming Behavioral Institute, and then met several times in July and eventually had sex at one of the city parks.

When interviewed by police, Lopez told them about the incidents and that he had kept her out past curfew.

He also told police that on one occasion he delivered marijuana to the victim.

While it is not an admission of guilt, an Alford plea acknowledges that prosecutors have enough evidence for a conviction.