Affiliate marketing involves three main parties: the merchant, the affiliate, and the customer. The merchant provides the product, the affiliate promotes it, and the customer makes the purchase. Affiliates use unique links to track their marketing efforts, and they earn a commission for each sale or action generated through their link.