save the day
Meaning: to do something that solves a serious problem.
Naturally, the hero saves the day by shooting the kidnappers and rescuing the hostages just in the nick of time.
It looked like we were going to lose the game, but Ronaldo saved the day by kicking two late goals.
Then a guy rides in on a white horse and saves the day by killing the bad guys and rescuing the girl.