The phrase
"to turn the tide" means to change a situation or outcome in a positive way, especially when things were not going well before. It refers to the idea of reversing a negative trend or shifting the course of events in a more favorable direction.
Full definition