By removing food sources and places to nest, you can prevent rats and mice from getting into your home.