Mayadunne and the Kingdom of Sitawaka was a part of the Sinhalese–Portuguese War, which was an effort to get rid of the occupying Portuguese forces and stop them from colonizing the island.