In some navies, a ship's corporal is a position—not the rank—of a petty officer who assists the master-at-arms in his various duties. Historically, a master-at-arms was responsible for the training of soldiers during peace time, or actively involved in leading the defense of a fortification during war time.
In some countries, the term navy police is used for a part of a navy responsible for law enforcement, such as the Royal Navy Police, known as the Royal Navy Regulating Branch until 2007.