The Thirteen Factories were a group of trading houses located in Canton (now Guangzhou), China, that served as the main hub for foreign trade during the 18th and early 19th centuries. These factories facilitated trade between Western merchants and Chinese officials, becoming essential to the Canton System, which regulated foreign commerce and limited interaction with local markets.