IPA: /ˌɛlɛkˈtrɒmæɡnɛt/
KK: /ɪˈlɛktrəʊˌmæg.nət/
A type of magnet that becomes magnetized when electricity flows through a wire coil wrapped around a core, usually made of iron.
The engineer used an electromagnet to lift heavy metal objects in the factory.
Electromagnet → It is formed from "electro-" (from Greek "ēlektron", meaning amber or electricity) and "magnet" (from Latin "magnes", meaning magnet or lodestone). The word refers to a type of magnet that is activated by electricity.
Think of 'electricity' ('electro-') being used to create a 'magnet' — that's how an electromagnet works.
No commonly confused words.