Engineered cytochrome P450 monooxygenase CYP154E1 enables the effective synthesis of the potential antidepressant (2R,6R)-hydroxynorketamine via N-demethylation and regio- and stereoselective hydroxylation of (R)-ketamine.