You can use arrow keys to navigate in the map.
This precludes that just because religion may control society, that it was created to do so - There may be other reasons for the creation of religion.
When a people are out of control, unmanageable, and need structure, but have no established leaders, they need a leader, but that leader must have a basis for leadership. When all else fails, create a basis out of nothing -- one with mysterious, powerful control over them
This assumes all religions to be equal in desire to control society.
If I were you, to avoid confusion I would rewrite this premise as "religion developed as a means of controlling society" or "religion's historical role in society has been in justifying the power of the ruling class", something along the lines of that.
Religion was developed as a primitive science, a way to explain the world around us.
It is easier to unite a group based on an uncertainty (i.e. the afterlife) that mostly everyone is afraid of and must endure.
A 'us vs them' scenario unites people who might otherwise be opposed to each other against a common 'enemy' - i.e those who follow other religions or believe in other gods
Society is defined as a group of individuals who share a distinctive culture and institutions. Society was actually a byproduct of religion. Farming led to religion (as a means to appease the gods, who controlled the weather), religion led to culture, and culture led to society.
There is two axes in religion: the one between the adherent and God; and the one between the adherents of the religion itself.
This statement neglects the first one, as the religion also has a spiritual goal, beside his social goal.
Religions were/are co-opted to control people. They weren't originally created to control people.