There are a lot of factors that affect the search results.
Different search engines use different algorithm things on the internet. Some most important factors that affect search results are:-
- Meta title/ description of page
- H1, H2, H3 tags
- Keyword density
- SEO friendly website
- SEO friendly URL
- Brand name of Website
- IP Address of website
- Internal Linking
- Header/ Footer of website
- Alt tags in images
- Domain Age