The transmembrane enzymes disulfide bond forming enzyme B (DsbB) and vitamin K epoxide reductase (VKOR) are central to oxidative protein folding in the periplasm of prokaryotes. Catalyzed formation of structural disulfide bonds in proteins also occurs in the cytoplasm of some hyperthermophilic prokaryotes through currently, poorly defined mechanisms. We aimed to determine whether DsbB and VKOR can be inverted in the membrane with retention of activity. By rational design of inversion of membrane topology, we engineered DsbB mutants that catalyze disulfide bond formation in the cytoplasm of Escherichia coli. This represents the first engineered inversion of a transmembrane protein with demonstrated conservation of activity and substrate specificity. This successful designed engineering led us to identify two naturally occurring and oppositely oriented VKOR homologues from the hyperthermophile Aeropyrum pernix that promote oxidative protein folding in the periplasm or cytoplasm, respectively, and hence defines the probable route for disulfide bond formation in the cytoplasm of hyperthermophiles. Our findings demonstrate how knowledge on the determinants of membrane protein topology can be used to de novo engineer a metabolic pathway and to unravel an intriguingly simple evolutionary scenario where a new “adaptive” cellular process is constructed by means of membrane protein topology inversion.