The Widal test is a serological test used to diagnose typhoid fever. It involves detecting the presence of antibodies against specific Salmonella typhi antigens in a patient's blood sample.