( ( The magnet ) ( ( is ( ( wrapped ( with ( ( a coil ) ( of wire ) ) ) ) ( that ( ( forms ( an electromagnet ) ) ( , ( wound ( so ( that ( ( its polarity ) ( is ( ( the opposite ) ( of ( that ( of ( the ( permanent magnet ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NN magnet)) (VP (VBZ is) (VP (VBN wrapped) (PP (IN with) (NP (NP (DT a) (NN coil)) (PP (IN of) (NP (NN wire))))) (SBAR (IN that) (S (NP (NP (NNS forms)) (NP (DT an) (NN electromagnet))) (, ,) (VP (VBD wound) (SBAR (RB so) (IN that) (S (NP (PRP$ its) (NN polarity)) (VP (VBZ is) (NP (NP (DT the) (NN opposite)) (PP (IN of) (NP (NP (DT that)) (PP (IN of) (NP (DT the) (JJ permanent) (NN magnet)))))))))))))) (. .)))
The magnet is wrapped with a coil of  wire that forms an electromagnet, wound so that its polarity is the opposite of that of the permanent magnet.
(ROOT (S (NP (NP (DT A) (NN solenoid) (CC or) (NN coil)) (VP (VBN wrapped) (PP (IN around) (NP (NN iron) (CC or) (JJ certain) (JJ other) (NNS metals))))) (VP (MD can) (VP (VB form) (NP (DT a) (PRN (-LRB- -LRB-) (NP (NN n)) (-RRB- -RRB-)) (NN electromagnet)))) (. .)))
A solenoid or coil wrapped around iron or certain other metals can form a(n) electromagnet.