X-ray structures of NADPH-dependent carbonyl reductase from Sporobolomyces salmonicolor provide insights into stereoselective reductions of carbonyl compounds.