A mariner's compass does not work in a submarine Why?
The body of a submarine is made of magnetic material like iron and steel. This acts as a shield to the earth’s magnetic field. That means, earth’s magnetic field will not be able to influence the magnetic compass correctly within the submarine.