The Cape was governed by the Dutch East India Company until its bankruptcy in the late 1700s, and thereafter directly by the Netherlands.