To protect your Base from attack, you can use the Peace Shield voucher to prevent your Base from being attacked (Armies outside your base are not protected). You can obtain this voucher from the Stash menu of the Shop section, the Shop section of the Faction menu, or Headquarters -> Base Buffs -> Peace Shield. You can send your armies to gather resources with other allies or send them to protect high-level allies' bases. This will not guarantee that you will be 100% safe from attack, but it can help you reduce the chances of an attack, or the losses incurred as the result of one. You can use a teleport voucher to move your Base to a new position on the World Map, far from the incoming attacks. Join a Faction and teleport your Base close to your allies so you can help each other.