Whooping cough, also known as pertussis, is a contagious bacterial infection that affects the respiratory tract.