The normally quiet planning board meeting in Bridgewater drew hundreds of residents Monday night.
Many of them were there to oppose the construction of the new mosque.
Residents say the site is on a narrow road and would create a traffic nightmare, but mosque supporters say the opposition has nothing to do with traffic.
The planning board approved an ordinance that would prohibit building houses of worship in residential areas.
The board's recommendation now must go before the city council and the mayor.