Peppermint oil is one of the best essential oils to use if you want to keep rats and other pests away. Others include citronella, lemon oil, eucalyptus oil, and cinnamon.