The most important factor that affects ranking is the quality of your content. If you have well-written, informative articles that are relevant to your niche, you'll naturally rank higher than those with poorly written or irrelevant content.
Other important factors include having a catchy headline, using keywords throughout your article, and linking to other relevant articles on your website (which helps increase your website's overall authority). design and user experience also play a role in ranking - if your website is easy to navigate and looks good, people are more likely to stay on it and click through to other pages, which tells search engines that your site is valuable.
Of course, there are other factors that can affect ranking as well.