A magnetic compass consists of several key parts, including the compass card, the gimbal system, the magnet, the housing, and the compensator. The compass card displays the ship’s heading, while the gimbal system ensures the compass remains level. The magnet influences the compass’s readings, and the compensator reduces deviation caused by the ship’s magnetic field.