Simple and nice how-to on building an electromagnet from Science Bob. Try making this special kind of magnet at home from things you may already have around the house. You will need: A large iron nail (about 3 inches), about 3 feet of THIN COATED copper wire, a fresh D size battery and some paper clips. Good project for the young MAKErs. Link.
Build your own Electromagnet