SEO is search engine optimization which is done on websites to receive free traffic from search engines and SEM is search engine marketing which is done for advertising purpose and to show advertisements on search result pages. "