You can wind a coil of wire around an iron bar, attach the wire to a battery, and make a magnet of the bar.