Ultimately, one of the most effective ways of doing that is through posting great content on your site that people would be happy to link to. Of course, you need some link building for ranking but you can't overlook the importance of quality content either.