The Battle of Gannoruwa was a battle of the Sinhalese–Portuguese War fought in 1638 between the occupying Portuguese forces and the Sinhalese King's army at Gannoruwa in the District of Kandy, Sri Lanka. The Portuguese had attempted three times without success to capture the Kingdom of Kandy, in order to bring the entire island under their rule. In 1635, Rajasinghe II became the king of Kandy and started negotiations with the Dutch to obtain their help in driving out the Portuguese. The Portuguese hastened their efforts to take Kandy because of this, and Diogo de Melo de Castro, the Portuguese Captain General, tried to provoke the Sinhalese on several occasions.