Mathew Fahey, 51, was charged with molesting the girls several years ago. Police say he molested an 11-year-old girl in September 2001 and also an 8-year-old girl in April 2008.
He was working as a ninth-grade English teacher at Palo Verde High School in Blythe in Riverside County when he was arrested in 2008. He also taught at Corona del Mar High School in Orange County between 2003 and 2004.
Fahey was also a professional photographer and allegedly took pictures of the girls. He faced a possible life sentence if he didn't agree to the plea deal.