The Palace is a building guarding the Relic and the Temple guards the Palace. Together they’re called the Wonder.
After the mist around the Wonder is unlocked, The Elders will hold scrambles regularly. The Alliance which get the highest score in scrambles will become the Guarding Alliance of the Kingdom and the leader become the King. The leaders of the Alliances which rank 2 to 5 will become Grand Dukes to resist the Legion and govern the Kingdom with the Elders.
For details: ‘Wonder & Relic’