How does Google decide which website ranks first?

Google uses advanced algorithms to determine which websites deserve the highest positions in search results. Every time a user performs a…