Dixie the pig faced eviction because of Durham's livestock rule.
Monday night, the city council voted to make an exception for the pot-bellied pig, recognizing Dixie as a pet.
Dixie's owners gathered hundreds of signatures and planned to move if the rule was not changed.
Raleigh and Concord have also amended ordinances allowing pot-bellied pigs as pets.
Pot-bellied pigs are the only livestock animal considered a domestic pet by the U.S. Agriculture Department.
Copyright 2023 by Capitol Broadcasting Company. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.