 On 2 July 1807 the expected invasion came through, and Liniers was defeated at Miserere, on the outskirts of the city.Whitelocke did not pursue the escaping creole army giving his troops three days of rest.Álzaga convinced the defeated Liniers on preparing the city's defenses, taking advantage of the respite; organized the defense house-by-house, illuminated the city with oil lamps to continue working through the night and made sure all houses had projectiles and other defensive arms on their roofs.