Between 1638 and 1640 the Netherlands even came to control part of Brazil's northeast region, with their capital in Recife. The Portuguese won a significant victory in the Second Battle of Guararapes in 1649. By 1654, the Netherlands had surrendered and returned control of all Brazilian land to the Portuguese.