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. As a result, the Dutch lost control of the areca nut trade and retaliated; by 1707 Kandyan borders had reopened and both ports were closed. Upon his death Vimaladharmasurya was succeeded by his son, who ruled as Vira Narendra Sinha. Several anti-Dutch uprisings occurred in the lowlands during the course of the 1720s and 1730s; the Kandyans in turn declared war in the Dutch in 1736 and seized some territory. Hostilities subsided with the appointment of Gustaaf Willem van Imhoff as Governor, and by 1737 the Dutch and Kandyans were once again at peace.