Affiliate marketing works when an affiliate earns commission in return for marketing another company's products. The affiliate promotes the product to their audience on their website, app or social media and earns a commission from each sale or sign-up they make.