A female teacher who sexually abused a boy for three years has had an abortion after becoming pregnant with his baby, a court has heard.

Crown prosecutor Adele Garrick told the Wellington High Court on Monday that the teacher groomed the boy from the age of 10 and started an intimate relationship with him from 2011.

It was not until August 2014 that the sexual abuse ended when another teacher discovered inappropriate text messages on the then 13-year-old's phone,reported Stuff New Zealand.

A teacher (stock photo) who sexually abused a boy for three years, starting from when he was just 10 years-old, has had an abortion after becoming pregnant with the boy's baby

The teacher, who cannot be named, has denied six charges relating to the sexual abuse of the child.

Sexual abuse claims made against the female teacher included kissing, sexual intercourse and sharing intimate photos and text messages the boy.

The Wellington High Court heard that the boy and other children would visit the teacher's house on occasion and in one instance in 2011 the teacher lay on top of the boy and kissed him.

The court heard that the teacher bought the boy a mobile phone and texted him saying she loved him, she also encouraged the boy to send her photos of his genitals.

Mr Garrick said the boy wanted to end the relationship in 2011 and texted the teacher to tell her that but the relationship went on the next year.

The boy tried to end the relationship the same year it started but it continued the following year

The teacher is accused of taking the boy to a motel room before she had intercourse with him. Afterwards, she told the boy she had an abortion after she got pregnant to him.

Stephen Iorns, the teacher's lawyer, disputed the claims and said the boy made up stories.

'She says he was infatuated with her,' Mr lorns reportedly told the court.

Mr Iorns said he is unsure of how the boy managed to get explicit photos of the teacher.