When a current flows througha wire, a magnetic field (linesof force) occurs.
In an electromagnet the linesof force occur around the softiron core and coiled wire.
The electric force of anelectromagnet can be madestronger in two ways:
By increasing the number ofturns of coiled wire aroundthe core
And/or by increasing theamount of electric current