Affiliate marketing works as per following steps:
(1) Finding a product or website to promote
(2) Signing up as an affiliate
(3) Getting your unique affiliate link
(4) Promotion of the affiliate products and links in your network
(5) Scoring a commission when someone buys a product through your link