According to a Castilian ordinance for "people of war" of 1497, Spanish foot soldiers were divided into three categories. One-third of the infantry carried pikes; one-third had swords and shields; and the final one-third consisted of crossbowmen and gunmen. It is in this configuration that the Spanish army won the first Italian Wars. In preparation for the Third Italian War of 1502 to 1504, Spanish general Gonzalo Fernández de Córdoba set his companies at 50% pikes, 33% swords, and 17% arquebuses. This ratio was flexible and could be changed as tactics required. The Battle of Cerignola, which demonstrated the power of the arqebus, had the Spanish army roughly following this ratio, with the infantry being 25% arquebusiers.