There are two common forms of cinnamon that can be used as ant repellents: ground cinnamon and cinnamon oil. Ground cinnamon can be simply sprinkled in areas to deter ants.
To prevent ants from barging into your home, first locate where they're entering. Clean the area with an eco-friendly ant spray, and then apply the cinnamon in their entryway.