When did Trinidad break off from South America?

Trinidad broke off from South America in 1797 when it was captured by the British.