The tetanus vaccine is given to protect the body against bacteria that cause tetanus, an infection that causes painful muscle spasms and can lead to death. The bacteria enter the body via cuts & open wounds; common sources of the bacteria include soil, manure, or dust.