MUMBAI, India — Two Indian men were convicted on Tuesday of raping their 10-year-old niece in a case that hit global headlines when the girl was denied an abortion by India’s top court and had to give birth, the local news media reported.

The girl was 30 weeks pregnant in July when a court in the northwestern city of Chandigarh turned down her abortion plea because her pregnancy was too far advanced. Indian law does not allow terminations after 20 weeks unless the mother’s life is in danger.

The girl did not know that she was pregnant and was unaware that she had delivered a baby girl in August as her parents told her she was undergoing stomach surgery to remove a stone. The baby was put up for adoption.

A court in India on Tuesday found two of the girl’s uncles, both brothers, guilty of rape with sentencing set for later this week, according to the Hindustan Times.