Question: what do you do if you have rats in your garden?
Answer: Peppermint oil. Rats hate the smell of peppermint oil, so it's an effective way to drive them away. ... 
Catnip. ... 
Keep your garden clean. ... 
Remove food and water sources. ... 
Soil netting. ... 
Sealing gaps.