A California pastor has been arrested for allegedly having sex with a teenage girl, Fox5SanDiego.com reports.

Matthias Anderson, 41, was taken into custody on Tuesday in Murrieta, Calif., on suspicion of unlawful sex and lewd acts with a child, according to the station. 

Police say Anderson, who started New Wine Ministries in Oceanside, went to the girl's home around 7:45 a.m. to see her. Instead, Anderson found police waiting for him, authorities said.

Detectives say Anderson had a sexual relationship with the girl for two years. They say he met the girl when she and her mother were staying at the church's women's shelter.

The girl's mother told police in October 2010 that she suspected Anderson and her 14-year-old daughter were having a sexual relationship, but the girl would not cooperate with the investigation at that time.

Click for more on this story from Fox5SanDiego.com