The process of designing and producing vaccines to stimulate the immune system to prevent or treat diseases.