First, you need to make sure your site is accessible to search engines. I mean from the technical side all content, pages, metadata can be crawled and indexed from the search bots.
Then you need enough high-quality content that can answer the niche search queries adequately and even predict user intent.
The next step is to optimize the content to surface on the search engine's first page and is good enough to attract clicks. Here I should mention the need to embed schema markup that will enhance the relevancy of the page.
Don't forget to optimize the user experience during their visit with a fast loading website suitable for all devices and great design with strategically placed conversion elements.