Check foundations for cracks and other discontinuities. Repair and seal cracks to keep ants out.
Install metal barriers underneath the foundation if there are discontinuities in the foundation that you can't fix. For example, if you have planned cracking at joints, install metal underneath the joints so that ants can't slip through the cracks.
Put metal barriers between wood and soil. Wood must sit 6 to 18 inches off the soil to avoid exposure to ants and other pests.