Owners of a Bangladesh garment factory were forced to offer prayers and distribute food to the poor on Wednesday in a bid to drive out what workers believed was a ghost at the plant, police said.

Some 3,500 workers stopped work at the plant in Gazipur, north of Dhaka on Tuesday, and smashed furniture to demand action to remove the ghost, which some workers claimed had attacked them in the ladies' washroom.

"The agitating workers refused to join duty and vandalised the factory after the management did not take any steps to drive out the ghost," Gazipur industrial police inspector Showkat Kabir told AFP.

Kabir said the owners held special prayers -- recitation of the Koran and hymns in praise of the Prophet Mohammed -- at the factory and also distributed food among the poor to drive out the "ghost".

"All the workers, owners and the managers will join the prayers and the factory will reopen on Thursday after two days of shutdown due to the ghost-related protests," he said.