By analyzing your query, I'd suggest you approach the municipal authorities first and they shall try to resolve the issue. Exhaust all other remedies before approaching the Court.
If there is no other resort, you may file for public nuisance against the factory owner/ manager as the case may be.
1. You can file a criminal complaint under Section 268 IPC for Public Nuisance.
2. You can apply to an executive magistrate under Section 133 CrPC to order the removal of the nuisance causing agent or activity from the locality.
3. You may file a suit under Section 91 CPC with one or more persons with the leave of the Court to put an end to public nuisance.
You may also refer to this Article for a better understanding of Section 91: https://www.lawyersclubindia.com/articles/section-91-c-p-c-a-weapon-against-public-nuisance-or-other-wrongful-acts-affecting-public--9351.asp
Nevertheless, the most common relief is the injunction order against continuing the act causing nuisance or an order for removal of the cause by the magistrate.
I hope this answer helps you!