Because of their highly developed sense of smell rats are very susceptible to certain odors. Peppermint oil castor oil and citronella oil all drive rats away. Use cotton balls soaked in these oils or just spread a little oil around where the rats are staying and they'll leave for less pungent climes.