It contains significant provisions that reaffirmed the primacy of Malay customary law or adat, while at the same time accommodating and assimilating Islamic principles.
The legal code is believed originally compiled during the reign of Muhammad Shah (1424–1444), before it was continuously expanded and improved by the succeeding sultans.
Early Melakan rulers promulgated court traditions and enforced the existing adat and religious rules to maintain social order.
In sum, there are 50 known surviving manuscripts of Undang-Undang Melaka, which can be categorized into; fundamental, Aceh, Pattani, long, Islam and Johor, and fragmented or short versions.
[10] Based on the published version of Undang-Undang Melaka, the text consists of six parts dealing among others with maritime, marriage and trade law.
The same section also identify the types of goods allowed in trade as well as those prohibited such as alcoholic drinks, dogs, pigs and rice wine.