Both are obvious. Creating quality content is considered as the first element responsible for ranking as well as building backlinks is useful to build authority to a site as well as coined as a metric for ranking well.