There are over 200 factors, but the six key factors are:
Keyword selection
Quality of content
Experience, expertise, authoritativeness, trustworthiness (EEAT)
Backlinks
Site structure and design
User experience