A magnetic needle, like the one in a compass, is a small magnet pivoted to rotate freely. When placed in a magnetic field, it aligns itself with the direction of the field lines, indicating the presence and direction of the field.