Do you have black ants? Get rid of black ants by following the procedures laid out in this article.
Most black ants are Carpenter Ants. Carpenter Ants do not eat wood, but they will tunnel into it. They use the soft, decaying wood to make their nests.
You can not just spray black ants. Get rid of this household menace by putting out bait for them to take back to the nest. When you spray, you only kill the ants you can see, but when you put out bait, you can kill off an entire colony.
While there are commercial baits, these use harsh chemicals that can harm children and pets. Instead, use a natural remedy deal with black ants. Get rid of black ants using a bait of Cream of Wheat. The dry cereal is transported back to the nest by the worker ants. All the ants in the nest eat the Cream of Wheat and when they ingest it, the cereal interactions with the body juices of the ant and the ant explodes.
If you do want to spray the visible ants, that's okay, but do not use a toxic commercial product. You can mix a few drops of peppermint essential oil with water in a spray jar and spray the ants with that mixture. It works as well as the commercial stuff without leaving a dangerous chemical residual behind.
Do you want to permanently eliminate black ants? Get rid of Carpenter Ants by leaving coffee granules around the kitchen. The ants will not come near dry coffee.