What are the major differences between antibiotics and vaccines?

Antiobiotics treat bacterial infections, and vaccines prevent viral infection.