Lex mercatoria, or 'law of merchants,' refers to a set of commercial laws and practices that evolved in medieval Europe to regulate trade and commerce among merchants. This body of law was not codified but was based on customs, practices, and agreements that merchants themselves developed to facilitate trade across regions. It played a crucial role in establishing a common legal framework that transcended local laws, thereby promoting commerce in a time when regional legal systems could be inconsistent or restrictive.