SEO is about optimizing your website to get better rankings in the search results while SEM goes beyond SEO. It involves other methods that can get you more search engine visitors like PPC advertising.
Both are best and effective techniques, it is increasing visibility in search engines. SEO is the procedure of optimizing your website and SEM is over and above SEO but it’s only a subset of your generally marketing technique.