There are certain plants which are known to deter mice and garlic is one of them. Because garlic has such a strong potent odor, it can deter a number of things including mosquitoes, spiders, and mice. Although this approach to getting rid of mice does not always work, certain people throughout history have claimed that it does.
You can even chop up some garlic cloves and mix it with water to create a sort of anti-mice deterrent spray. Those who have problems with unwanted guests in their garden can also use this spray on the plants or simply spread around garlic cloves. The more potent the garlic is the better because the smell is essentially what makes it such an effective repellent.