Neem oil has antibacterial and antifungal properties that can help in repelling ants. You can mix neem oil with water and spray it on the entry points of ants.
Soaking garlic in water and sprinkling that water on the routes and entry points of ants can keep ants away.
Spreading red chili powder in ants' paths can deter ants as its chili powder affects ants very negatively.
Spreading cinnamon powder on ants' paths can keep ants away.
Applying tomato paste on the paths of ants can keep ants away because tomato has antifungal properties.
Spread food-grade diatomaceous earth around entry points and ant trails. This substance is harmless to humans and pets but deadly to ants due to its abrasive nature.
Placing mint leaves around ants can help in repelling ants as ants are very negatively affected by it.