In April 1511, Afonso de Albuquerque set sail from Goa to Malacca with a force of some 1200 men and seventeen or eighteen ships. It became a strategic base for Portuguese expansion in the East Indies. Sultan Mahmud Shah, the last Sultan of Malacca took refuge in the hinterland, and made intermittent raids both by land and sea, causing considerable hardship for the Portuguese. In the meantime the Portuguese built the fort named A Famosa to defend Malacca (its gate is all that remains of the ruins at present). "In order to appease the King of Ayudhya" (Siam, of which Malacca was a part) "the Portuguese sent up an ambassador, Duarte Fernandes, who was well received by Ramathibodi." in 1511.Finally in 1526, a large force of Portuguese ships, under the command of Pedro Mascarenhas, was sent to destroy Bintan, where Sultan Mahmud was based. Sultan Mahmud fled with his family across the Straits to Kampar in Sumatra, where he died two years later.