Rats dislike peppermint, you can prevent them from entering by scenting cotton balls or rags with the oil and placing them where they may be entering or hiding out. This method also discourages ants.