On late 18th century, Edward Jenner invented vaccines for smallpox. The second generation of vaccines were made by Louis Pasteur. He developed vaccines for chicken cholera and anthrax.
RNA vaccines and DNA vaccines are the third generation of vaccines. The first one was to fight Zika virus. a HIV vaccines is on trial status too.

Did you know about Variolation?
It was a method used in China, India and Middle East before vaccination. Rubbing smallpox from pustules and making superficial scratches in the skin, made you produces a less severe disease and adquiring immunity.

