As an affiliate you enter into an agreement with a merchant to promote their products, and send customers to them. The merchant then tracks purchases and pays you a percentage of the sale.
Affiliate marketing has been around since the early days of Amazon and is a viable method of making an online income. However, margins are generally small, which means that significant earnings are difficult to achieve without scaling your efforts and promoting products or services for many merchants.