The biocatalytic hydroxylation of fatty acids is an appealing reaction, but the generation of over-oxidation by-products and the lack of selectivity hampers its transfer to industry. Now a highly selective and efficient peroxygenase has been engineered for the production of hydroxy fatty acids through a synthetic procedure that can be rapidly adapted to the preparative scale.