In case of the ferromagnetic tunnel junction element, after forming a film of a non-magnetic metal layer formed of, e.g., Al, its surface is oxidized or azotized by using a gap including oxygen or nitrogen, thereby forming the insulative non-conductive layer 805.