The Spanish succeeded in invading the capital on April 16, 1578, with the help of Pengiran Seri Lela and Pengiran Seri Ratna. 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. The Spanish suffered heavy losses due to a cholera or dysentery outbreak. They were so weakened by the illness that they decided to abandon Brunei to return to Manila on June 26, 1578, after just 72 days. Before doing so, they burned the mosque, a high structure with a five-tier roof.