robots.txt is a text file in the root of a site with rules for search robots: which sections to crawl and which to skip.
In plain words
robots.txt is a short instruction for search engines. The file lives at yoursite/robots.txt, and robots read it first, before crawling the pages.
It is used to block service sections from crawling: the admin area, the cart, on-site search results. To remove a page from search, you need the noindex tag. The file also points to the sitemap address.
One extra line can hide the whole site from search. That is why this file is the first thing to check after launching a site, moving to new hosting or changing the domain.
After moving to new hosting, a clinic's site disappeared from Yandex. A line left in robots.txt was blocking robots from crawling the entire site.