During the late eighteenth and early nineteenth centuries, the US Consular Service was used primarily for protecting American commerce and citizens abroad. After 1818, as their most important task until 1890s, American consuls were also assigned to protect Treasury revenues by establishing and monitoring commercial agreements regarding the American interests. Significant growth of trade led the US to expand its consular services throughout the world in the nineteenth century.