The son of Sultan Mahmud Shah, Ahmad Shah's rule began in 1511 when his father stepped aside. It ended in 1513 when he died during the kingdom's war with Portugal: His father stabbed him after failing the attack to conquer Malacca. He was succeeded in rule by his father.