Congenital syphilis is a disease that occurs when a mother with syphilis passes the infection on to her baby during pregnancy.