As with other former colonies, El Salvador was considered a mono-export economy (an economy that depended heavily on one type of export) for many years. During colonial times, El Salvador was a thriving exporter of indigo, but after the invention of synthetic dyes in the 19th century, the newly created modern state turned to coffee as the main export.