I have been working on SharePoint for a long time but still confused with the concept of webapplications in SharePoint and IIS, I would also like to know the relationship between them.

I just studied that SharePoint web application consists of Web App IIS + Content DB but thats not enough to understand the whole concept.