The Treaty of The Hague (also known as the Treaty of Den Haag) was signed in 1661 between representatives of the Dutch Empire and the Portuguese Empire. Based on the terms of the treaty, the Dutch Republic recognized Portuguese imperial sovereignty over New Holland (Dutch Brazil) in exchange for an indemnity of 4 million reis, conversion from 2 million Caroli Guilders, over the span of 16 years.
In 1648-49 the Luso-Brazilians defeated the Dutch in the first and second battles of Guararapes, and gradually recovered their land. In addition, the wars between England and the Dutch Republic were weakening Dutch power everywhere. In January 1654 the Dutch surrendered and signed the Treaty of Taborda, but only as a provisory pact (truce).
With the end of the First Anglo-Dutch War, the Dutch Republic began, in May 1654, to demand New Holland back. The Grand Pensionary of Holland Johan de Witt didn't agree with these strong-arm tactics because he thought that commerce was more important than the possession of territories. Therefore, a peace treaty was signed on 6 August 1661 at The Hague whereby New Holland was sold to Portugal for the equivalent of 63 tonnes of gold. The treaty later led to a deal over Dutch Java and Portugal's East Timor/ The Dutch promised not to enter or claim Timor for the Treaty of The Hague stated none of these powers would declare war on each other or claim or enter their territory or colonies.