Magnets have north and south poles and attract magnetic materials like iron. A magnet can induce magnetism in other magnetic materials through magnetic induction. The magnetic domains within materials align to create their magnetic properties, and heating, hammering, or alternating currents can demagnetize materials by disrupting this alignment. Magnets can be made by stroking an object with a magnet or by running a direct current through a solenoid wrapped around the object.