Revised plans for a large indoor pig farm at a Westcountry beauty spot have been refused by East Devon District Council after concerns it may damage an ancient heathland habitat.
The proposals for a pig breeding and rearing unit, slurry store, drainage pond and access track have faced a long campaign by residents in Venn Ottery, near Sidmouth.
Chris Down's scheme, west of Collyhead Farm, was rejected by the chairman of the authority's development management committee under delegated powers.
The project was turned down because its scale "failed to conserve the landscape and scenic beauty" of an Area of Outstanding Natural Beauty.
It was also said to have the potential to do "significant harm" by depositing nitrogen into the East Devon Pebblebed Heaths, which date back 240 million years.
Alan Martin, chairman of the Venn Ottery Residents' Association, said: "We're very glad that sense has prevailed and the application was refused by the planning department."