save the day
save the day {v. phr.}
To bring about victory or success, especially when defeat is likely.
The forest fire was nearly out of control when suddenly it rained heavily and saved the day.
The team was behind, but at the last minute Sam saved the day with a touchdown.
Categories:
Source: A Dictionary of American Idioms