There are several natural ways to keep rats away. You can make a paste of salt, flour, sugar, and detergent and place it around the areas you suspect are home, spray peppermint oil near the entrance, bait, and many more ways mentioned in the article.