How does affiliate internet marketing paintings?

How does affiliate marketing work? What is the essence of affiliate marketing? This is one of the marketing tools, which uses a link to an advertised...