You must know that rodents get access to your house through small holes and openings. You need to seal all holes with the size larger than ¼ inch using steel wool mixed along with caulk, metal and concrete. You better not use softer material, like wood or rubber as it can be easily chewed by the rodents.
You should also clear up any possible nesting sites for rats, by placing woodpiles at about 100m from your house. Ensure you have removed any old tires, vehicles and any other of debris around your house to avoid any place for rodents to make their nest.
You better always keep all food items, including pet and livestock food, in rodent-proof containers. Food waste products should also be kept in enclosed bins in and outside your house. You should further keep these waste bins away from your house, at least 100ft away, and make sure you have elevated the garbage cans at least 1 foot above the ground.
Before performing any steps to eliminate the rodents, you need to determine the source of the problem. Any droppings of food stuff, shredded material for nesting, gnawing on food containers and damage to the building structure can easily tell you that rodents have infested your home. Contacting a Cooperative Extension Service may help you know what sorts of rodents are present in your home and you can then take steps towards their elimination.
Using rodent traps is an easy way to get rid of these creatures. You can use peanut-butter of fruit as bait and place the traps near the region you spotted the signs of rodents.
Using poison bait may become necessary if your rodent traps fail to give you the desired results. Be very careful to keep poisonous bait away from the reach of children.