It is impossible to answer this in a few lines.
All in all, it is necessary:
– That the structure of your website allows the search engines to browse your pages without difficulty,
– To offer a rich and unique content likely to interest Internet users. This content must be highlighted through the consistent use of HTML tags which will emphasize the important keywords,
– To have a popular website, which means to get lots of links on other websites pointing to your website.