What is affiliate marketing?

Hello friends,

I want to know what is affiliate marketing and how to earn with affiliate marketing?

Thanks in advance!:)

.