There are a number of ways to deal with rats, and the best method may vary depending on your specific situation. An electric chicken fence can be effective at keeping out some animals, like deer, bear, raccoons, rabbits, foxes, coyotes, and stray dogs. However, it likely won't do much to deter rats. If you're looking for a more permanent solution, you might want to consider hiring a professional pest control company to remove the rats from your property.