A throat swab is a medical procedure used to collect a sample from the back of the throat, including the tonsils and other areas where infections are commonly found. This sample is then analyzed in a laboratory to identify the presence of pathogens like bacteria, viruses, or fungi.