Amaster-at-arms (US:MA; UK and some Commonwealth:MAA) may be anaval rating, responsible forlaw enforcement, regulating duties, security, anti-terrorism/force protection (AT/FP) for a country'snavy; an army officer responsible for physical training; or a member of the crew of amerchant ship (usually a passenger vessel) responsible for security and law enforcement. In some navies, aship's corporal is a position—not the rank—of apetty 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 termnavy police is used for a part of a navy responsible for law enforcement, such as theRoyal Navy Police, known as the Royal Navy Regulating Branch until 2007.

The master-at-arms (MAA) is a ship's senior rating, normally carrying the rank of chief petty officer or warrant officer. They are in charge of discipline aboard ship, assisted by regulators of theRoyal Navy Police, of which they are a member. The non-substantive (trade) badge of an MAA is a crown within a wreath.
The post of master-at-arms was introduced to the Royal Navy during the reign of King Charles I; their original duties were to be responsible for the ship's small arms and edged weapons, and to drill the ship's company in their use.[1] This was not an onerous task, and masters-at-arms came to be made responsible for "regulating duties"; their role as weapons instructors was eventually taken over by the chief gunner.[2]
The MAA is addressed as "Master" if holding the rank of chief petty officer, regardless of gender, and is often nicknamed the "jaunty", a corruption of the Frenchgendarme, or the "joss/jossman".
As a result of theArmed Forces Act 2006, the term Regulating Branch was changed to Service Police and the branch title changed to theRoyal Navy Police and reported to their respective service'sProvost Marshal, who was responsible to theFirst Sea Lord.[3]
In theBritish Army, a master-at-arms is anofficer of theRoyal Army Physical Training Corps, posted as an SO2 or SO3 at divisional headquarters or higher command, and responsible for overseeing all fitness training in subordinate units. The role is filled by RAPTCWO1s at brigade headquarters, whileWO2s orstaff sergeantPTIs are embedded at unit level.
In theUnited States Navy, the master-at-arms rating is responsible for law enforcement, investigations,K-9, expeditionary, and anti-terrorism/force protection operations.[4] It is one of the oldest ratings in the United States Navy, having been recognized since the Navy's inception.