Imperial Truth
"There can be daemons in a secular universe."
- Warmaster Horus
"If once we can produce our perfect work—the Materialist Magician, the man, not using, but veritably worshipping, what he vaguely calls “Forces” while denying the existence of “spirits”—then the end of the war will be in sight."
- Screwtape
"The mistake we make is to attribute to religions the errors and fanaticism of human beings."
-Tahar Ben Jelloun
The Imperial Truth is the atheist rationalist doctrine espoused by the Emperor of Mankind as part of the Great Crusade. According to the Imperial Truth, the Emperor believed that religion and superstition had divided mankind too much during its history (which the Emperor had reason to believe, having lived through most of Terra's religious wars). When the Great Crusade left Terra, the Imperium of Man was to become a secular state espousing science and reason (based on the contentious and erroneous assumption that religion, and as smeared by association religious people, cannot have or co-exist with reason). Following the Horus Heresy and the Emperor's internment on the Golden Throne, the Imperial Truth collapsed, the Emperor's very own philosophy denounced as HERESY, and the Imperium of Man has become a theocratic dictatorship where questioning anything results in a painful death.
However, the Emperor didn't just ban and purge religion simply because he disagreed with it. During his millennia of existence, the Emperor had come to partially determine the nature of the relationship sentient life had with the Warp. Knowing that the belief in gods would only serve to create them and empower the Warp creatures, the Emperor hoped to starve the Chaos Gods by denying them worshipers. What the Emperor failed to understand was that the Chaos Gods were powered not by faith, but by emotions. People going about their daily lives experience their normal emotions would still empower the Chaos Gods. What was needed was an alternative to direct the belief at, such as a God-Emperor (or the religions that existed at the time before Emps decided to go all Stalin on them; the Emperor may even have BEEN Stalin). Or, at least, an approach to explaining Chaos that was actually thought out.
When Horus had a vision of the 41st millennium, part of his instant patricidal rage was that the Emperor was abandoning the Imperial Truth by seeking to become a real god (which made the Emperor a hypocrite if true). This in turn convinced him to renounce the Emperor. And then start worshiping the Chaos Gods. Chaos is a funny thing. Of course, if he had such a vision before being infected by a chaos blade, he probably would have applied logic and observed things, such as the skulls and corpse sitting on a golden throne and realized that this is what would happen if the Emperor failed.
An alternative view is that the Emprah's plan wasn't to actually kill the Chaos Gods but to remove them from the Materium. The Emprah had a few major pet-peeves: religion, uncontrolled psykers, xenos and warp travel. Without Cultist-chan and chaos worshiping xenos, there would be no summoning of daemons. Without uncontrolled psykers, few possessions would occur. Without warp travel, there would be few opportunities for Chaos Gods to fuck Man up. Thus, without religion, xenos, psykers and warp travel, the Chaos Gods and their minions wouldn't be able to access the Materium (for the most part). Who gives a shit if the Chaos Gods are powerful if they are unable to do shit with that power? Answer, Emprah knows BEST!!!! (Although the Emprah withholding this knowledge from nearly everyone, including his own sons who are out on their own all over the galaxy, probably wasn't the best idea since knowing the enemy is the first step in fighting it.)
It might also be said that the Emprah didn't set himself up as a God for one simple reason: HE KNEW HE WASN'T ONE*. He is also older than those four fucks who think they are Gods. When he was born there were bad bad critters in the warp that were eating human "souls", but Ragey, Schemey and Zitpop were only just beginning to form and Rapey was still just a twinkle in the Eldar's collective eye; as such, he actually KNEW for a fact that there were no Gods (depending on where you sit on that in real-life) and that the Chaos Gods were delusional. Admittedly, the Emprah certainly bent the truth about the "emergent warp phenomena" often enough BUT the Imperial Truth was just that: the TRUTH.
Unfortunately, any doctrine based upon scientific materialism and skepticism doesn't work in practical terms in a universe where eternal & ethereal souls exist / people come back from the dead / technology is animistic / prayer works / failure to burn enough witches at the stake makes your world a putrid mess with rivers of puss / Red 'Unz do go Fasta! / and the most advanced race in the settings is religious, works on prophecies and ghost powered mechanized support.
But only if one utterly fails to understand how science works and that if such those are possible, observable, and repeatable they're just another sort of science which can be controlled, manipulated, or contained with enlightened understanding of their underlying mechanics. This leaves us back at "Emps had the right idea (note this is in the Warhammer universe as there are many views on the subject of God or gods in real life), but he just didn't trust people enough for it to work", or people simply couldn't perceive the universe on the same scale that he could. It is called Chaos for more than just artistic reasons, its meant to be contradictory and unpredictable.
The Tau tried treating things scientifically on Kronus (Eldar weapons), Kaurava (Living Saints), and Medusa V (analysing a warp rift). In the first two cases they could not understand a thing about how they worked, (though an inability to understand something that's too advanced, like an Eldar weapon, doesn't mean it's beyond science, just beyond your current capability) and on Medusa they basically made the scientific equivalent of "Here be dragons".
Magnus said that the Warp is just another type of knowledge to be used. The Warp, in turn, made him its bitch. Don't forget that at it's roots, 40k is Warhammer Fantasy IN SPACE!. Psychic powers are just the winds of magic, but they changed some details so it would sound sci-fish. Even ignoring that, there is nothing "possible, observable, and repeatable" when it comes to the Warp, and many other things in 40k. It's well, chaotic, the hate, anger and madness of uncountable beings in the Galaxy. There is nothing rational about the emotional refuse of sentience.). It's a shame he wasn't powerful enough to destroy the big bads of Chaos until after they had "matured". Otherwise I figure he would have. Who knows, maybe he did try and got close but was just a little too late. Chaos does refer to him as the "anathema", after all.
Still, the Emprah probably would have done better to be more straightforward and say: "There are no gods, just alien dimension energy beings that are so fucked up, they think they are Gods. They are lying and will fuck you over." The Emprah's own biggest fuck up was not trusting mankind or even his own Primarchs to be able to cope with the existence of eldritch entities in general without falling on our knees to worship them. Wonder how he equated that with the Cadians' daily routine of "murder the fuck out of a billion daemons" (actually, Cadia was inhibited by warp-worshipping primitives during the Great Crusade, but that's beside the point). The Emprah was like a manager that hides vital information from his employees because he doesn't think they can cope with the big picture. Then, the company falls apart when an engineer pisses off a major customer because of some unknown piece of said info. That is WH40K in a nutshell.
Witness the Interex, who lasted for thousands of years as an atheistic empire on the basis of the aforementioned "There are no gods, just alternate dimensional energy beings that WILL fuck you the hell over if you listen to them" truth, and did a hell of a lot better at holding out than the Imperium ever has, under both the Imperial Truth and the Imperial Faith. The Imperium loses everything from churches to planets to fucking Space Marines all the time even under the Imperial Faith, whereas the Interex basically never lost anyone, up until the Chaos Gods got pissy and told Erebus to start a war between the Interex and the Imperium to ensure the Interex's destruction.
If the Imperial Truth is even known about by the time of 40k is uncertain, although more then likely the term is now used as pro-imperial propaganda by Imperial Missionaries trying to sell worship of the Emperor to disbelieving locals on your newly discovered savage world. IN fact the novel Hammer & Anvil fall out say that's what it is.
* Note the word "wasn't" is strictly past tense, which is kinda important