Ants are attracted to food and moisture. When they find a food source, they will leave an invisible chemical trail called a pheromone. Other ants will follow the pheromone trail until they find the food.