A novel monooxygenase (CYP102A3) has been discovered within the Bacillus subtilis genome that reveals a similarity of 76 % to the well-known cytochrome P450 BM-3 of B. megaterium (CYP102A1). Both enzymes are natural fusion proteins consisting of a heme domain and a FAD/FMN-reductase domain. Because of their high turnover rates, these biocatalysts are of special interest for industrial applications, but show only limited regioselectivity. In this work, the regioselectivity of CYP102A3 was changed by directed evolution and protein design to hydroxylate substrates not only in different subterminal, but also to a high extent, in terminal carbon chain positions. To enable a high-throughput screening procedure, a very versatile assay was developed that is capable of discriminating between terminal and subterminal hydroxylation of carbon chains. A double mutant of CYP102A3 was obtained that produces 48 % octan-1-ol as the main product of the reaction.