Identifying and extracting geologic horizons is useful for interpretation of stratigraphic features as well as analysis of structural deformation. To extract horizons from a seismic image, we developed methods for automatically unfaulting and unfolding an image to restore all horizons to an undeformed, horizontal state. First, using fault surfaces and dip-separation vectors estimated from an image, we interpolated dip-separation vectors at locations between fault surfaces, and then we used the interpolated dip-separation vectors to unfault an image. Then, using a method for automatic seismic image flattening, we unfolded the unfaulted image to obtain a new image in which sedimentary layering is horizontal and also aligned across faults. From this unfaulted and unfolded image, we automatically extracted geologic horizons.