During Portuguese admiral Diogo Lopes de Sequeira's visit to Malacca from 1509–1510, the sultan planned to assassinate him. However, Sequeira learned of this plot and fled Malacca. When the famous Portuguese naval officer Afonso de Albuquerque received word, he decided to utilize this to embark upon his expeditions of conquest in Asia.[2] Malacca was then subsequently attacked by the Portuguese in the Capture of Malacca (1511), during which the Sultan retreated to Muar, Johor and later further to Kampar, Sumatra and held a government there until his death in 1528.