In entire human history only USSR tried to substitute religion with worship of party and its leaders in lieu of religion. Atheism was encouraged but not enforced in earnest. I wonder what would happen to religious mindset if rulers of human world tried to spread atheism for the past 10,000 years instead of whatever silly Gods they were promoting at the time? Power elites love religion(s) it keeps slaves docile in this world by giving them a carrot of "life after death", it calls unseen powers to justify all the things a particular ruler wishes to do.
Here is The Moral Code of the Builder of Communism (as reported on Wikisource):
1. Devotion to the cause of Communism, love of the socialist Motherland and of the socialist countries.
2. Conscientious labor for the good of society: he who does not work, neither shall he eat.
3. Concern on the part of everyone for the preservation and growth of public property.
4. High sense of public duty; intolerance of actions harmful to the public interest.
5. Collectivism and comradely mutual assistance: one for all and all for one.
6. Humane relations and mutual respect between individuals: man is to man a friend, a comrade, and a brother.
7. Honesty and truthfulness, moral purity, unpretentiousness and modesty in social and private life.
8. Mutual respect in the family, concern for the upbringing of children.
9. Irreconcilability towards injustice, parasitism, dishonesty, careerism, and profiteering.
10. Friendship and brotherhood among all peoples of the USSR, intolerance of national and racial hatred.
11. Intolerance towards the enemies of communism, peace, and freedom of nations.
12. Fraternal solidarity with the working people of all countries, and with all peoples.
Ten commandments are vicious barbarity compared
As a result of thousands of years of cultural indoctrination some people wish for an invisible boogie man granting their wishes and answering their prayers for a larger piece of pie (here and there). Act of existence is selfish and lonely, if not for that particular boogie man many people would have nobody to care. Until people will not realize that they have just each other in this world, we are doomed.