It's the building where allies can trade resources.
Upgrading the Alliance Community Exchange can increase transaction amounts and reduce tax rates.
A transportation unit will march from your castle to the castle of your ally when you transport resources to them.