It's also important to note that when someone attacks your city, you don't lose the city or any of its buildings. If the attacker is successful, they will take any resources that aren't protected in a storehouse and will kill any troops that are set to defend the city. In addition, all players have the option of joining an alliance with other players, which enables you to ask for troops to help defend your city.