SEM works by placing ads for a website at the top or bottom of search engine results pages, using specific keywords or phrases that users are likely to search for when looking for products or services that the website offers. Advertisers bid on the keywords or phrases they want to target, and pay for each click their ad receives.