The city was built by the Portuguese in 1687 .
The city was founded in 1687 by Portugal as a fortified port and trading center .