Temples and mosques were symbols of the rulers' faith in God, their wealth, and their political power.