Rats and mice are commensal rodents. That is they live in association with humans. In homes, offices, shops, factories and farms they take advantage of our food supplies and the shelter our buildings and structures provide. the first line of defence against rodents is proofing; stopping the rats or mice getting in.
How to Stop Rats and Mice Getting Inside