After building the Alliance Hall, you can get help from your allies for assistance in defense if your castle is attacked.

 The more soldiers you can obtain, the higher your Alliance Hall level.