To protect your empire from enemy attacks in Days of Empire, strengthen defences, upgrade defensive structures, maintain a strong army, and form alliances for mutual protection.