Indian navy helicopters and emergency service boats came to the rescue of more than 800 people stranded on a train in floods near Mumbai on Saturday. Some reports have the number of people affected at over 1,000.

The Mahalaxmi Express left Mumbai late on Friday for Kolhapur but travelled only 60 kilometres (37 miles) before it became stranded after a river burst its banks in torrential rain, covering the tracks.

The train was stuck for about 12 hours in Thane district before authorities called in the Indian navy and the National Disaster Response Force (NDRF) who deployed helicopters, boats, and divers.

Indian Railways said the train was emptied in about five hours after the operation started. Nine pregnant women were among those taken off.

Stranded train in Badlapur, India on Saturday, 27 July. Photograph: Anadolu Agency via Getty Images

Aerial images showed boats taking people wearing life jackets away from the stricken train, trapped in a sea of muddy brown water that covered surrounding fields.

Ambulances and at least 37 doctors were sent to treat passengers, who were also given food and water, Indian Railways said.

A spokesman for the state company added that a “special relief train” would take people onwards on their journeys.

Heavy monsoon rains battered Mumbai, forcing the cancellation of 11 flights from the financial capital’s international airport on Saturday. Nine incoming planes were diverted to other airports.

The main highway from Mumbai to the resort of Goa was closed because of rising waters.

At least 20 centimetres (eight inches) of rain fell in some parts of Mumbai over 24 hours.

More than 250 people have died in flooding across India in the past two weeks, with Assam and Bihar states in the north the worst hit. The army said it had rescued more than 150 people stranded in their homes in Assam’s Nalbari district in recent days.