Invest in defensive fortifications, establish alliances for mutual defense, and develop military capabilities to deter or repel raids and attacks on your resources.