Prevention tips
Reducing moisture is one of the most effective things you can do against both pests. Fix leaking pipes, improve drainage around your foundation, and make sure gutters direct water away from the building. Keep firewood, lumber, and mulch away from the exterior walls.
For termites specifically, avoid wood-to-soil contact wherever possible, and consider a professional inspection if you haven't had one recently. Our termite prevention page has more practical steps you can take.
For ants, seal cracks and gaps around doors, windows, and utility entry points. Keep food stored in sealed containers and clean up spills promptly.