sentences:  Kandyan campaigns in 1675 and 1684 recaptured some territory, but by the time of Rajasinha's death in 1687 neither city had returned to Kandyan control.Rajasinha's son ascended to the throne as Vimaladharmasuriya II, and his twenty-year reign (1687–1707) proved relatively peaceable.A trade war broke out in 1701, when the Kandyans closed their borders with Dutch territories in order to stimulate trade through the ports of Puttalam and Kottiyar.