(to) save the day = to prevent a disaster or misfortune
Example 1: The Christmas tree was on fire, but Ted threw water on it and saved the day
Example 2: We forgot to buy champagne for our New Year's party, but Sonia brought some and really saved the day.