A magnetoresistive sensor including a substrate, a pair of magnetic shield layers consisting of a lower magnetic shield layer and an upper magnetic shield layer, a magnetoresistive sensor layer disposed between the pair of magnetic shields, an electrode terminal for flowing a signal current perpendicular to the plane of the magnetoresistive sensor layer, and magnetic domain control layers, wherein a magnetic domain control layer of said magnetic domain control layers is disposed on each of opposite ends of the magnetoresistive sensor layer in the region from the end surface of the media-opposed surface side of the magnetoresistive sensor layer to the depth position and includes a layer made of a soft magnetic material having high electric resistivity disposed in contact with opposite ends of said magnetoresistive sensor layer, and a hard magnetic layer, disposed outside the soft magnetic material, made of a metal magnetic material having a composition including at least one of the elements of Co (cobalt), Cr (chromium), Pt (platinum), Ta (tantalum), and Nb (niobium).