There are certain things which rats don’t like among them the top is a clean house, rats needs trash to live and loves to be among them and not in a clean house where it is hard to find trash. Additionally there are some plants which repel rats and can be used as a repellent.
Mint is the plant which is most effective and natural repellent for rats because rats hate the smell of mint and other herbal aromas. SO plant some mint, spearmints or citronella plants if you want to get rid from rats.
Lemon Balm is also a plant from mint family and produces a lemony odor that rats and pests hate so it can also be beneficial if you want to repel rats.
Balsim Fir Tree is also among the list of natural things that rats hate the most because its powerful smell is what rats can’t stand for.