SEO is mostly free, but it takes effort. Although you don't pay to have ads displayed directly, you need to invest a lot of time and effort to produce high-quality content that deserves to rank well.