Defending the empire against invasion