Tetanus is a good example of a bacteria that your body can be vaccinated against, however the antibodies fade over time so booster shots are required and usually another precautionary booster is given if you are possibly exposed to it.
Or you could fight it with your 'natural' immune system alone if you like.