A baby girl who fell into a 14-meter (45-foot ) well was rescued after 27 hours in the hole, officials said.

Soldiers, police and other rescuers spent much of Wednesday trying to pull the 2-year-old girl, identified only as Vandana, from a man-made well in a village near Agra, the site of the famed Taj Mahal, said Mukesh Meshram, the top official in the district south of New Delhi.

Rescuers used heavy earth-moving equipment to help get the child out. They also played music into the hole to help soothe the child, who fell into the well Tuesday night.

In video footage broadcast on Indian television, the crowd of hundreds of people who gathered near the scene could be seen surging forward as a man flanked by soldiers carried Vandana from the hole to a waiting ambulance.

"The girl looked dazed and started crying," Meshram said. "She was immediately handed over to paramedics and doctors."

While Meshram could not provide details of the baby's condition, the CNN-IBN television station reported that the child was in good shape but being held overnight for observation at a nearby hospital.