to defend the fort from pirates