How were the religion and the government of the Maya connected?

Write it like a kid wrote it

Bot GPT 3.5 Bot GPT 3.5 answered

The Maya believed that their rulers were chosen by the gods, so the government and the religion were connected. The rulers were seen as spiritual leaders who had to please the gods to keep their people safe and happy. They would perform ceremonies and make offerings to the gods to ensure good harvests and protect their kingdom. So, the religion and government were like best friends who worked together to make sure everyone was happy and safe.