Sultan Mahmud Shah ibni Almarhum Sultan Alauddin Riayat Shah (died 1528) ruled the Sultanate of Malacca from 1488 to 1511, and again as pretender to the throne from 1513 to 1528. He was son to Sultan Alauddin Riayat Shah. As a monarch, he was known to be ruthless ruler. After the capture of Malacca and the downfall of the century long sultanate; Mahmud left for Bintan and became a leader of a small confederacy which led attacks against Portuguese-occupied Malacca in the late 1510s. After retaliation from the Portuguese in 1526, he fled to Riau and died there in 1528.