An elongate medical body for implanting an embolic coil at a desired position, or retrieving an embolic coil from an aneurysm, includes a flexible wire main body, and an electromagnet provided at a distal end portion of the wire main body. The electromagnet can generate a magnetic field at the distal end portion. An energization state of the electromagnet is switched to attach and detach a spiral embolic coil having a magnetically attractable proximal end portion to and from the distal end portion.