Police say Elizabeth Madrid (above), 29, engaged with a sexual relationship with a 14-year-old student for nine months, having started texting in 2017

A former Oklahoma school secretary has been arrested after police say she engaged in a sexual relationship with a now 14-year-old student.

Elizabeth Madrid, 29, was arrested on Friday after police brought nine charges of second-degree child rape and 21 counts of performing lewd acts with a child against her.

Bethany Police say the former attendance secretary at Western Oaks Elementary School began engaging with the alleged victim in early 2017 over text message.

Madrid and the unnamed boy first became physical last summer and were still said to be engaging in sexual activity until her arrest on Friday, police claim.

Madrid worked at the Putnam City school from August 2016 until she resigned in May last year. The pair are said to have started texting in 2017

According to a search warrant affidavit, police conducted a search of Madrid's home after receiving a tip the victim had been living with her for two weeks.

The victim's mother told authorities she thought her son had been staying with his father during that time, documents indicate.

She later contacted his father and discovered he hadn't been staying there.

'He was a student at the time,' Lieutenant Angelo Orefice of Bethany Police told News 4. 'Eventually, it became a sexual relationship in June or July, 2018.'

Madrid worked at the Putnam City school from August 2016 until she resigned in May last year.

Lieutenant Angelo Orefice of Bethany Police said the relationship turned sexual during summer last year, and continued right up until Friday

However, the school district's communication police forbids teachers, coaches and staff members from texting students on a personal basis.

Exceptions only include confidential, medical or crisis matters, which must be disclosed to senior officials at the school before hand.

'Everything is a case by case basis. It just depends on the severity of the relationship, so to speak,' Orefice continued.

'So, it’s not unordinary to have a lot of charges like this.'

Madrid was taken to the Oklahoma County jail where she remains in custody on a $550,000 bail bond.