I recently answered a question about Breaking Bad's initial methamphetamine production method (i.e. the reduction of (pseudo)ephedrine). The reaction is as follows:
(Source)
It is infamously known as the $\ce{HI/P}$ reduction and was (and still is somewhat) a real plague in the United States until cough medicine containing ephedrine came under tightened control. That for an introduction, now the question: what is actually the reaction mechanism of the $\ce{HI/P}$ reduction?
The first step seems like a simple $\ce{S_{N}2}$ substitution of $\ce{I^{-}}$, catalyzed by the protonation of the alcohol group by hydroiodic acid (making it a far better leaving group). But what is the mechanism after that? How is phosphorus involved? Does the $\ce{HI/P}$ reduction have any legal use?