This is a complex question and it involves many factors.
The first step to rank any website is to add unique and valuable content that helps the end user.
The second step is getting high authority or DA links pointing at your website through seo.
You can check out if a website has a high da authority by using tools like ahrefs check domain authority.
There is a lot more to it but that is seo in it's most basic terms.