The most common attractants for ants are sources of food, water, and shelter. The presence of these things on your property can lead ants to invade your property, and once on your property, it is only a matter of time before those ants find their way into your home while foraging for food sources.
There are a few things ants are particularly attracted to, such as clogged gutters, leaky outdoor fixtures, unsecured garbage cans, gardens, woodpiles, pet food or animal feed, compost piles, and outdoor eating areas. In addition, ants invade homes to seek relief when the weather outside becomes too hot, dry, or wet.