Disclosed are morphinan derivatives of formulae I, II, III or IV wherein the substituents are as defined herein. Also disclosed are methods of synthesis of the compounds and their use as mu receptor agonists in the treatment of conditions including pain, arthritis, addiction, and side effects of other opiate medications.