Sultan Muhammad Shah was the first Sultan of Brunei. He ruled Brunei from 1363 to 1402. He was the first Muslim ruler of Brunei as a result of his conversion to Islam in 1363 for his marriage to a Johorean-Temasik princess. Prior to conversion to Islam, he was known as Awang Alak Betatar.