Put a sheet of paper over a bar magnet and sprinkle iron filings on top. Tap the paper and the filings line up in curved lines that run from one end of the magnet to the other. Those lines are a picture of the magnetic field: the direction a tiny compass would point at each spot. They crowd together near the poles, where the field is strongest, and spread out further away, where it is weaker. Outside the magnet they run from the north pole to the south pole, and inside the magnet they carry on back to north, so every line is a closed loop.
Magnets are not the only source. In 1820 Hans Christian Ørsted noticed a compass needle twitch when he switched on a current in a nearby wire. Any moving electric charge makes a magnetic field. Around a straight wire the field lines are circles centred on the wire, and the field gets weaker further out: for a current I at distance r, B=2πrμ0I. Wind the wire into a coil and the circles add up into a field like a bar magnet's: an electromagnet you can switch off.
A magnetic field is not an electric field. A charged balloon pulls on bits of paper but does nothing to a compass; a magnet swings a compass but leaves a scrap of paper alone. Magnetic fields act on magnets, on iron, nickel and cobalt, and on moving charges; electric fields act on any charge, moving or not. Magnets also always have two poles: cut a bar magnet in half and you get two smaller magnets, each with its own north and south.
Think of it like this. A magnetic field is like the wind across a field of weather vanes: at every spot it has a direction and a strength, and each vane (a compass needle) swings to point along it. The wind is strongest in some places, just as the field is strongest near the poles. Unlike wind, field lines never start or stop; they always close into loops.
Core idea. Magnets and moving charges fill the space around them with a magnetic field that has a direction and a strength at every point; its lines always form closed loops, and it turns compasses and pushes on magnets, iron and moving charges.