YouTube says more than 500 hours of video arrive every minute. Search exists so you do not have to scroll that mountain. Official help pages list three ranking ingredients: relevance, engagement, and quality. Their importance shifts with the type of query.
Relevance asks whether the title, description, tags, and the video itself match what you typed. Engagement looks at how other people behaved after the same search—especially whether they stayed and watched. A famous clip can lose to a quieter explainer if viewers abandon the famous one.
Quality is about expertise, authoritativeness, and trust. That matters more when the query is news, health, or science. In music and entertainment, freshness and popularity can play a larger role. YouTube also says it does not sell a better slot in ordinary search results.
Your own history can change the list. Two people can type the same words and see a different mix if watch and search history are on. Turning those off makes results less personal and more generic.
For viewers, the lesson is to be specific. “How to replace a bike chain 8 speed” beats “bike.” For anyone publishing, a clear title that matches the actual explanation is more useful than a louder claim.