Etymology
Today it means: An associate with whom one shares a mess (eating place) on a ship. Full definition →
From mess + mate.
Etymology from Wiktionary, CC BY-SA 4.0.