The vote, which was unanimous, took place after a public hearing that was filled with both sides of the debate.
Those for the ordinance they call balanced, and those against it say it doesn't go far enough.
Mansfield has more than 200 wells with the potential to have that many more over the next few years.
Opponents say the city's setback boundary of 600 feet for new gas wells isn't enough. They originally called for 1,500, but Monday night, they said they'd settle for 1,000.
The council also heard from several homeowners and business owners who say 600 feet is enough, and any more and they'd lose valuable land that could be used for development of businesses or schools.
The city says it's proud of the ordinance, saying it will put strict air quality burdens on drilling companies at every site, prevent hydraulic fracking on weekends and allow the city to call into question any site that may not be operating safely.
Mansfield has gone through four revisions of the ordinance since 2008.