Muhammad Shah (born Awang Alak Betatar, 1368–1402)[1] established the Sultanate of Brunei and was its first sultan. The genealogy of Muhammad Shah is unclear,[2][3][4] and based on several historical sources and legends.