The throne now passed to Senarat's son Rajasinha II, who led the Kandyans to a major victory over the Portuguese at Gannoruwa on the 28 March 1638. The battle was to be the last major military victory for the kingdom of Kandy, and succeeded in severely weakening the Portuguese presence in Sri Lanka. In May of that year he concluded a wide-ranging alliance with the Dutch, who were by now in control of Batavia. Batticaloa and Trincomalee fell in 1639, Galle in 1640, and Kandyan forces seized Portuguese territories further inland.