The verb extricate means to remove something or free someone from a difficult situation.
Synonyms are detach, extract, liberate, or rescue.
The word origins from Latin (1610s) extricatus meaning “disentangle, disengage, set free”, past participle of extricate meaning “disentangle”. It comes from ex meaning “out of” plus tricae meaning “perplexities, hindrances”.
It is not easy to extricate the man from the quicksand.
The kidnappers decided to extricate their captives.
I am trying to extricate myself from my financial problems.