After 1830, it was deployed mainly in the Dutch colonies, as the Netherlands remained neutral in European wars (including the First World War), until the Netherlands was invaded in the Second World War and quickly defeated by the Wehrmacht in May 1940.