A Lancaster city man was sentenced to five to 13 years in state prison last month after he pleaded guilty to possessing an illegal stolen handgun and dealing synthetic opioids.