Plot device
Deus ex machina
An improbable, external intervention that abruptly resolves the plot's central problem.
Deus ex machina in fiction: 1 work
Earthly bacteria, not human effort, abruptly defeat the invaders, an intervention from outside the human struggle.