Hoffmannelemination is an organic reaction used to convert an amine with a β-hydrogen to an alkene using methyliodide to form ammonium iodide salt.See the figure i.
Mechanism––––––––––––––
i. Formation of ammonium iodide salt. See the figure ii.
ii. Substitution of iodide ion with hydroxide. See the figure iii.