to withdraw from a difficult situation
"When faced with overwhelming odds, the army had to retreat to safety."