To provide a motor enabling a magnetic material to be taken out without breaking it while a lid member is held relative to a rotor by fastening members, a compressor including the motor and a method of taking out the magnetic material.
A motor includes a stator and a rotor (52). The rotor (52) includes a rotor core (55) and a lid member (57), and is disposed so as to be rotatable relative to the stator. In the rotor core (55), magnet arrangement spaces (S1) each having a magnet (56) arranged therein are formed. The lid member (57) is fixed to the rotor core (55) on the axial outer side of the rotor core (55) by fastening members (62). The lid member (57) is configured to enable the magnet (56) to be taken out by detaching a cover portion (71) which is part of the lid member (57) and covers the magnet (56) from the covering position while the lid member (57) is held relative to the rotor core (55) by the fastening members (62).