Penicillin is the most effective drug used to treat syphilis.