A method for producing an in vivo indwelling member having a secondary coil in which a secondary shape is given to a linear primary coil with a primary shape given to a linear material, includes: a first three-dimensional body formation step of forming a first three-dimensional body by aligning in a loop a plurality of segments, each of the segments being formed by winding the primary coil at least once, so that a part of the primary coil is spatially arranged; a second three-dimensional body formation step of forming a second three-dimensional body by aligning in a loop a plurality of segments, each of the segments being formed by winding the primary coil at least once, so that at least a part of the rest of the primary coil is spatially arranged after the formation of the first three-dimensional body; and an inside arrangement step of arranging one of the first and second three-dimensional bodies inside a loop part formed of the plurality of segments aligned in a loop of the other three-dimensional body.