Eventually, the Spanish invaded the capital on 16 April 1578, with the help of Pengiran Seri Lela and Pengiran Seri Ratna, burning towns and raping populations. The Sultan Saiful Rijal and Paduka Seri Begawan Sultan Abdul Kahar were forced to flee to Meragang then to Jerudong. In Jerudong, they made plans to chase the conquering army away from Brunei. Suffering high fatalities due to a cholera or dysentery outbreak, the Spanish decided to abandon Brunei and returned to Manila on 26 June 1578, after 72 days. Before doing so, they burned the mosque, a high structure with a five-tier roof.