Where does magnetism comes from?
Magnetic forces arise from the movement of electrons (electric charge).
In case you want it, here is more information on magnetism.
http://en.wikipedia.org/wiki/Magnetism
http://www.phy6.org/Education/Imagnet.html
http://www.factmonster.com/ce6/sci/A0831162.html
In the future, you can find the information you desire more quickly, if you use appropriate key words to do your own search.
I hope this helps a little more. Thanks for asking.