A 40-year-old San Angelo man appeared in court in Lubbock after being arrested for two counts of online solicitation of a minor.

That's according to Lubbock county arrest records.

Miguel Castillo allegedly messaged a Lubbock County Sheriff's deputy posing as a minor.

The messages involved nudity and photos.

It all happened last New Year’s Eve.