There’s a Crimson Fists Land Raider called Rynn’s Might that, the story goes, fought a whole night’s battle with nobody inside it. The crew were dead or gone, and the tank kept grinding through an Ork position on its own, guns tracking targets, killing a Warboss and a heap of his lads before something finally put it down. No driver. No gunner. Just the machine, doing the job it was built for, apparently because it wanted to.
The Imperium has a word for the thing that did that. Machine spirit. And the further you poke at what a machine spirit actually is, the more you notice that nobody in the setting is allowed to poke at it too hard.
The official line
The Cult Mechanicus teaches that every machine, from a lasgun to a Warlord Titan, carries a sliver of the Motive Force, the animating power of the Omnissiah. That sliver is the machine spirit, and to the tech-priests it is not a figure of speech. A gun that jams has a sulking spirit. A tank that won’t turn over wants coaxing: incense, the right words, a libation of sacred oils poured in the right places before you strike the Rune of Awakening. There’s an old naval flight manual quoted in White Dwarf that runs through the entire rite of mobilisation and then tells you the engines can be brought to full activation by depressing the large panel marked ON. They wrote a liturgy for pressing the power button.
Imperial Armour describes these spirits as near-bestial. Some are bellicose, some fiercely loyal to their custodians, some capricious enough to refuse an operator’s commands outright while others answer flawlessly. When a Techmarine works on a vehicle, half the labour is the rite, rekindling the warspirit so it’ll fight again and recording each wound in the Litanies of Battle. The oldest serving Imperial vehicles are honoured like saints. There’s a Salamanders Rhino called Nocturne’s Hammer that supposedly carried Vulkan himself and still rolls to war.
What it probably is, under the incense
Scrape the religion off and a machine spirit starts to look like automation. The position the lore lands on, near as I can pin it, is that a machine spirit is a bundle of self-running systems, part mechanical and part organic, that can keep a vehicle fighting when its crew goes down. The qualifier that keeps the Inquisition off everyone’s back is that a machine spirit can’t improve itself. It does what it does. It doesn’t learn, doesn’t rewrite itself, doesn’t get ideas. That’s the one thing standing between a holy machine spirit and a forbidden Abominable Intelligence, and the Imperium treats anything that smudges the line as a capital heresy.
Then there’s the line from Imperial Armour that I genuinely can’t let go of. Writing about the Imperium’s logic engines, it admits some “may verge on the thinking machines of old, while others no doubt utilise harvested or artificially cultured biological matter at their core.” And then the tell: the machine spirit has to be more than a mechanical process, because “were it not, it would transgress the most fundamental tenets of Machine Lore.”
The reason it has to be a spirit is that if it isn’t a spirit, the entire religion is heresy.

The thing the Imperium is flinching from is its own past. In the Dark Age of Technology, humanity built machines that thought like men, and those machines, the Men of Iron, rose up and very nearly ended the species. The whole Imperial attitude to technology is one long cringe away from that memory, which is also why they replicate ancient STC designs without ever asking how they work. So when a tank fights on by itself and kills a Warboss in the dark, you do not ask whether the thing inside it is thinking. You light the incense, you call it a spirit, and you get back to refuelling it.
The machine spirits that don’t fit the comfortable version
Kastelan Robots are the ones that get under my skin. They’re ancient automata the Mechanicus still fields, and they only permit a tech-priest, a Datasmith, to steer them while the battle’s actually happening. The moment the fighting stops, they take themselves back. They revert to standing guard, or whatever they were doing before, on their own authority. The Mechanicus uses them regardless, because they win battles, and works very hard not to dwell on the bit where a ten-thousand-year-old war robot is choosing to let you borrow it.
There’s a Lightning fighter called Indomitable Spirit that had a long career and, over the years, developed a stubborn and aggressive character that bailed its pilots out of trouble more than once. The Blood Pact captured it. When its new Chaos pilot lined up a kill on an Imperial aircraft, the plane took control and flew itself into the ground rather than allow the shot. A machine that chose to die for the Emperor with a traitor at the stick. You can shelve that under “loyal machine spirit” if it helps you sleep, and I’m not sure it should.
The detail that shoves it past plain automation for me is corruption. A machine spirit can be tainted by Chaos. Leave a vehicle too long in the wrong kind of warp storm, or let the wrong ritual touch it, and the spirit can sour into something heretical, which is roughly the origin story of the daemon engine the Lord Discordant rides, built around a Land Raider’s corrupted spirit. So whatever a machine spirit is, it has a surface the immaterium can grip, and the immaterium is supposed to be the domain of souls. The Mechanicus simultaneously teaches that xenos machines have no real spirits worth the name, which is a very handy thing to believe about the property of people you intend to exterminate. A bundle of dumb automation shouldn’t have anything for the warp to corrupt. These clearly have something, because the Imperium keeps a whole category of heresy for the times it goes wrong.
And look, I’ll argue the other side, because I do it in my own head anyway. Most of the time a machine spirit is nothing. It’s a Guardsman blowing on his lasgun and muttering a catechism, the same useless way I knock on wood before a dice roll. Out of the billions of machines grinding away across the Imperium, the overwhelming majority are just machines, and the spirit-talk is people pinning a face on tools they’ll never understand. Ninety-nine of every hundred angry machine spirits are a loose connection and a nervous operator. The trouble is the hundredth. It only takes Rynn’s Might happening once, and the tidy explanation stops being available to you.

The model I talk to
I’ve got an Imperial Fists Land Raider Crusader I’ve had since seventh edition, from back when there was a literal rule called Power of the Machine Spirit that let the thing keep firing one weapon at full effect even after the crew got shaken and everything else dropped to snap shots. One game against Pete’s Salamanders it was the last thing I had left moving, half its guns blown off, and it just kept dumping hurricane bolter rounds into his Devastators turn after turn, passing saves it had absolutely no right to pass. By the end I was talking to it out loud. Pete was not amused, partly because he was losing to a tank and a man having a conversation. I’ve never magnetised that model, never swapped it for the mathematically superior Repulsor everyone keeps telling me to run. It’s a slightly-too-expensive slab of an obsolete kit and it’s mine.
The Titans take this somewhere stranger. A princeps links his own mind to a god-engine through the Throne Mechanicum, and over a career the boundary between the pilot and the machine starts to smear. The oldest Titans of the Collegia Titanica are said to carry the imprinted ghosts of every princeps who ever commanded them, their personalities layered into the machine spirit like rings in a tree. So you’ve got a war engine the size of a building whose spirit is part ancient archeotech and part dead-man’s-residue, and when it strides into battle nobody can say with confidence which part is in charge. The Mechanicus reveres them precisely because they’re the loudest and most willful spirits of the lot, and a princeps who’s been bonded to one for forty years will tell you flatly that it has opinions.
I keep coming back to the fact that the Imperium has cutaway diagrams of its Land Raiders with the machine spirit’s physical location labelled on them. Component number two, sitting in the hull, drawn and numbered like a fuel tank. They know where it lives. They’ve mapped it. They just won’t say what it is, because the honest answer might be the one thing in the galaxy they’ve spent ten thousand years agreeing never to build again.
So the rites stay. The oil gets poured, the serial runes get blessed, the Rune of Awakening gets struck before anyone presses the panel marked ON. What actually wakes up when you do that, the Mechanicus has quietly decided it would rather not find out, and ten thousand years on, you can sort of see their point.