The nature of the gods

How does the nature of the gods, how they are conceived of in a particular society, influence the nature of the rituals that are conducted?