Once we started farming, it is generally assumed, we stopped moving. We settled down and built villages and temples. Villages require rules, and so we privileged some among us to make laws and enforce them (thus the birth of organized society). Temples require priests, and so we designated others to regulate worship and speak to the gods on our behalf (thus the birth of organized religion).

