Websites and pages are ranked in search engines by using a complex algorithm that takes into account 200+ factors. Websites that are ranked higher in the SERPs are the ones considered to be the most relevant and useful.