Precautions that prevent attack by decay and termites are usually effective against carpenter ants. Decaying or infested wood, such as logs, stumps, or retaining walls, should be removed from the premises, and crevices present in the foundation or woodwork of the building should be sealed. Particularly, leaks in porch roofs should be repaired because the decay that may result makes the wood more desirable to the ants.