Ants are omnivorous animals and eat almost everything in nature. They eat both plants and animals to meet their nutritional needs.
Most ant species are known to be opportunistic for their behavior in foraging. That is, they will eat whatever is found in your home to stay alive.
However, you should know that not all ant species will eat the same thing, which means different ant species will also have different food they will eat.