A Stanley man will spend three years behind bars after pleading guilty to possessing child pornography in September.