 This assault took 20 days, and with it the war was ended.At the beginning of the war there were not seven hundred Spaniards in the city capable of bearing arms.More than 5,000 Chinese were thought to have been killed.