You need a mixture of both. In order to rank well you typically need REALLY good content that people actually want to read.