Advertisers bid on keywords that users might search for, with the objective of appearing with search results for those keywords. The highest bidder often gets the first spot on the SERP.