Spielberg gets the blame. H. G. Wells got there first.
In RAIDERS OF THE LOST ARK, God finishes off the Nazis. In JURASSIC PARK, a T. rex arrives just in time to rescue our heroes. In WAR OF THE WORLDS, the invading aliens are defeated by bacteria.
God. Dinosaurs. Germs. Spielberg has assembled a rather unusual rescue squad.
Now before we accuse him of writing himself out of a corner, we ought to give credit where it's due. The ending of WAR OF THE WORLDS was written by H. G. Wells in 1898. Spielberg's 2005 film keeps it. It's not a last-minute Spielberg invention, and the point Wells was making is a lot more interesting than 'we ran out of ideas.'
The aliens have machines that can destroy cities and weapons that render human armies useless. They apparently gave some thought to interplanetary travel and conquest. What they overlooked was the local health department. Earth's microorganisms do what all those tanks and soldiers could not.
Wells was writing about invasion and empire, and he turns the whole idea of conquest on its head. The supposedly superior invaders can't even survive the planet they've come to own. There's a pretty sharp joke buried in that premise, although humanity isn't laughing while the tripods are operating.
The other issue is this: Who is the protagonist and what is HIS story?
Ray Ferrier, played by Tom Cruise, isn't a scientist trying to discover the aliens' weakness. He's a father who hasn't been particularly good at being one. When the invasion begins, his assignment is to keep his children alive. That's the movie we're watching, even while the larger catastrophe takes place all around him.
Ray makes some ugly decisions. He kills the man hiding with him and his daughter when that man's behavior becomes a danger to them. He later fights back inside an alien machine. These aren't passive actions. The guy is trying, often desperately, to save his family. But he doesn't figure out the secret of the invaders or single-handedly save the world.
He isn't supposed to.
A character can win his personal story without winning the war. In fact, if Ray suddenly developed a biological weapon and defeated the invaders, we'd be watching a completely different film. Probably one with a military scientist, a government briefing, and a lot more dialogue about pathogens.
The germs are a defensible ending. The bigger problem for me is Robbie.
Ray's son races off toward the military action and disappears into an inferno. The film seems to be telling us that Ray has lost him. That's a terrible thing for a parent to confront, and the scene has real emotional weight.
Then, at the end, Robbie is standing there safe and sound with the family in Boston.
Huh?
How did he survive? How did he get to Boston? There may be perfectly plausible answers, but the film doesn't bother giving us one. He's just back. We had the traumatic loss and now we get the happy reunion, without having to endure the consequences in between.
That's the moment when I feel a writer putting a thumb on the scale. Wells's germs are part of the premise and the theme. Robbie's miraculous return looks a lot more like somebody wanting an emotional payoff without paying the full price for it.
The distinction is worth keeping in mind. Deus ex machina doesn't simply mean 'the protagonist wasn't the one who killed the bad guy.' A story can be about the limits of human control. But it still has to honor the promises it makes to its audience.
I'll buy that microbes defeated the aliens. H. G. Wells made the case more than a century ago. I'm still waiting to hear how Robbie got through that battle.
Film credits: WAR OF THE WORLDS (2005), directed by Steven Spielberg. Screenplay by Josh Friedman and David Koepp; based on H. G. Wells’s 1898 novel.