The selectivity of acetylation of δ-functionalized secondary alcohols catalyzed by Candida antarctica lipase B has been examined by molecular dynamics. The results from the simulation show that a δ-alcohol functionality forms a hydrogen bond with the carbonyl group of Thr 40. This interaction stabilizes the tetrahedral intermediate and thus leads to selective acetylation of the R enantiomer. A stabilizing interaction of the δ-(R)-acetoxy group with the peptide NH of alanine 282 was also observed. No stabilizing interaction could be found for the δ-keto functionality, and it is proposed that this is the reason for the experimentally observed decrease in enantioselectivity. From these results, it was hypothesized that the enantioselectivity could be restored by mutating the alanine in position 281 for serine. The mutation was made experimentally, and the results show that the E value increased from 9 to 120.