There are three main types of e-commerce: business-to-business (websites such as Shopify), business-to-consumer (websites such as Amazon), and consumer-to-consumer (websites such as eBay).