Following the capture of Gibraltar in August 1704, another siege was attempted later that year. Approximately 500 Spanish soldiers, led by a goat herder, scaled the Rock of Gibraltar from the south side and made it to St. Michael's Cave, where they stayed the first night. The next night, they climbed the Charles V Wall and killed a guard at Middle Hill. The Spaniards then assisted several hundred more Spanish soldiers up the Rock with ropes and ladders. However, they were discovered and many were killed or sent over a precipice, the Wolf's Leap, with the rest taken prisoner. By 1727, Middle Hill Battery had been constructed and a gun had been mounted; the emplacement continued to be used and upgraded for more than two centuries.