35-year-old man admitted infecting his wife, the first case of its kind in New Zealand, an offence that carries a maximum 14 years' of imprisonment.
According to media report, the man wanted to transmit the disease to her so that she would start having sex with him again.
In court documents, the woman described how her husband twice pricked her with a sewing needle laced with his infected blood.
During a routine check-up four months later she found she was HIV-positive and confronted her husband who admitted dipping a needle in his blood and pricking her with it.
"All he said (was) he was sorry. He said, "I used needles on you because I wanted you to be the same as me so that you can live with me and you won't leave me," she said.
The man discovered he was HIV-positive during the compulsory health checks done in New Zealand in 2004. But the woman and their children were not infected with the virus, the report said.
The woman said she wanted to maintain the relationship for the sake of the children but refused to have sex with her husband as she feared she would contract the disease.