There used to be a vaccine but it was discontinued because of insufficient demand.
https://www.niaid.nih.gov/diseases-conditions/lyme-disease-v...
"In April 2002, GSK announced that even with the incidence of Lyme disease continuing to rise, sales for LYMErix declined from about 1.5 million doses in 1999 to a projected 10,000 doses in 2002."
How do we square this with the number of cases rising so much over the last few years?