A newborn girl was buried alive for two days before being discovered by a family who were digging a grave for their own baby.

The family had been preparing to bury their stillborn daughter in a cemetery in Uttar Pradesh, India, when they found the baby inside a clay pot and wrapped in cloth two feet underground.

Doctors treated the newborn - who weighed 1.1 kilograms - for a lung infection and said she had probably been in the shallow grave for two days, according to ABC .

The stillborn's father, Hitesh Kumar, told local media that at one point he thought his daughter had come back to life, before realising the cry was coming from the pot.

The baby is now in a stable condition but still has an infection (
Image:
ABC)

She reportedly needed less oxygen to survive as she was premature, and has since had her medical care funded by local politician Rajesh Kumar Mishra.

The newborn, who has been named Seeta, is now in a stable condition but still has an infection, with doctors feeding her every two hours. Police are also still searching for her parents.

Female infanticide is not uncommon in India, which has 866 girls under seven for every 1,000 boys in New Delhi, according to its 2011 cencus.

Dr Neelam Singh, a local gynaecologist, said the problem was "rampant" but added more cases are found in the country's northern states of Uttar Pradesh and Bihar.

Abortion rates for baby girls have reportedly increased since ultrasound technology became more accessible in the 1970s, despite sex-selective abortion being outlawed in 1994.