to take, and a focal point in the trade network where Malay traders met Gujarati, Chinese, Japanese, Javanese, Bengali, Persian and Arabic, among others, described by Tomé Pires as of invaluable richness. Despite its wealth, it was mostly a wooden-built city, with few masonry buildings but was defended by a mercenary force estimated at 20,000 men and more than 2000 pieces of artillery. Its greatest weakness was the unpopularity of the government of Sultan Mahmud Shah, who favoured Muslims, arousing dissatisfaction amongst other merchants. Afonso made a bold approach to the city, his ships decorated with banners, firing cannon volleys. He declared himself lord of all the navigation, demanded the Sultan release the prisoners and pay for damages, and demanded consent to build a fortified trading post. The Sultan eventually freed the prisoners, but was unimpressed by the small Portuguese contingent. Afonso then burned some ships at the port and four coastal buildings as a demonstration. The city being divided by the Malacca River, the connecting bridge was a strategic point, so at dawn on 25 July, the Portuguese landed and fought a tough battle, facing poisoned arrows, taking the bridge in the evening. After fruitlessly waiting for the Sultan's reaction, they returned to the ships and prepared a junk (offered by Chinese merchants), filling it with men, artillery and sandbags. Commanded by António de Abreu, it sailed upriver at high tide to the bridge. The day after, all had landed. After a fierce fight during which the Sultan appeared with an army of war elephants, the defenders were dispersed and the Sultan fled. Afonso waited for the reaction of the Sultan. Merchants approached, asking for Portuguese protection. They were given banners to mark their premises, a sign that they would not be looted. On 15 August, the Portuguese attacked again, but the Sultan had fled the city. Under strict orders, they looted the city, but respected the banners. Afonso prepared Malacca's defenses against a Malay counterattack, building a fortress, assigning his men to shifts and using stones from the mosque and the cemetery. Despite the delays caused by heat and malaria, it was completed in November 1511, its surviving door now known as "A Famosa" ('the famous'). It was possibly then that Afonso had a large stone engraved with the names of the participants in the conquest. To quell disagreements over the order of the names, he had it