During the Spanish–American War, American forces under General Nelson A. Miles landed at Guánica near Ponce on July 25, 1898. The landing surprised the United States War Department no less than the Spanish, as Miles had been instructed to land near San Juan (the War Department learned of the landing through an Associate Press release.) However, en route to Puerto Rico Miles concluded that a San Juan landing was vulnerable to attack by small boats, and so changed plans. Ponce, said at the time to be the largest city in Puerto Rico, was connected with San Juan by a 70-mile military road, well defended by the Spanish at Coamo and Aibonito. In order to flank this position, American Major General John R. Brooke landed at Arroyo, just east of Guayama, intending to move on Cayey, which is northwest of Guayama, along the road from Ponce to San Juan. General Brooke occupied Guayama August 5, 1898, after slight opposition, in the Battle of Guayama. On August 9, the Battle of Guamaní took place north of Guayama. A more significant battle, the Battle of Aibonito Pass, was halted on the morning of August 13 upon notification of the armistice between the United States and Spain.