Bacteriology is the branch and specialty of biology that studies the morphology, ecology, genetics and biochemistry of bacteria as well as many other aspects related to them. This subdivision of microbiology involves the identification, classification, and characterization of bacterial species.  Because of the similarity of thinking and working with microorganisms other than bacteria, such as protozoa, fungi, and viruses, there has been a tendency for the field of bacteriology to extend as microbiology.  The terms were formerly often used interchangeably.  However, bacteriology can be classified as a distinct science.
Bacteriology is the study of bacteria and their relation to medicine. Bacteriology evolved from physicians needing to apply the germ theory to address the concerns relating to disease spreading in hospitals the 19th century.  Identification and characterizing of bacteria being associated to diseases led to advances in pathogenic bacteriology. Koch's postulates played a role into identifying the relationships between bacteria and specific diseases. Since then, bacteriology has played a role in successful advances in science such as bacterial vaccines like diphtheria toxoid and tetanus toxoid. Bacteriology can be studied and applied in many sub-fields relating to agriculture, marine biology, water pollution, bacterial genetics, veterinary medicine, biotechnology and others.  
A bacteriologist is a microbiologist or other trained professional in bacteriology. Bacteriologists are interested in studying and learning about bacteria, as well as using their skills in clinical settings. This includes investigating properties of bacteria such as morphology, ecology, genetics and biochemistry, phylogenetics, genomics and many other areas related to bacteria like disease diagnostic testing.  They can also work as medical scientists, veterinary scientists, or diagnostic technicians in locations like clinics, blood banks, hospitals, laboratories and animal hospitals.   Bacteriologists working in public health or biomedical research help develop vaccines for public use. 
Bacteria were first observed by the Dutch microscopist Antonie van Leeuwenhoek in 1676, using a single-lens microscope of his own design. He then published his observations in a series of letters to the Royal Society of London. His observations also included protozoans, which he called animalcules. The German Ferdinand Cohn began studying bacteria in 1870 and is also said to be a founder of bacteriology, as he was the first to classify bacteria based on their morphology.  
Louis Pasteur demonstrated in 1859 that microorganisms cause the fermentation process, and that this growth is not due to spontaneous generation ( yeasts and molds, commonly associated with fermentation, are not bacteria, but rather fungi). Along with his contemporary Robert Koch, Pasteur was an early advocate of the germ theory of disease.  Between 1880 and 1881 Pasteur produced two successful vaccinations for animals against diseases caused by bacteria. The importance of bacteria was recognized as it led to a study of disease prevention and treatment of diseases by vaccines.   Pasteur's research lead to Ignaz Semmelweis and Joseph Lister researching the importance of sanitized hands in medical work.
In the 1840s, Semmelweis' observations and ideas surrounding sanitary techniques were rejected and his book on the topic condemned by the medical community due to its' conflict with the prevailing theory and practice of humorism at the time.  After Lister's publications, which supported hand washing and sanitation with germ theory, doctors started sanitizing their hands in the 1870s; mandatory handwashing wasn't incorporated into common health practice until as late as the 1980s. 
The discovery of the connection of microorganisms to disease came later in the nineteenth century, when German physician Robert Koch introduced the science of microorganisms including bacteria to the medical field.  Koch, a pioneer in medical microbiology, worked on cholera, anthrax and tuberculosis. In his research into tuberculosis Koch finally proved the germ theory, for which he received a Nobel Prize in 1905.  In Koch's postulates, he set out criteria to test if an organism is the cause of a disease, and these postulates are still used today.   Both Koch and Pasteur played a role in improving antisepsis in medical treatment. In 1870-1885 the modern methods of bacteriology technique were introduced by the use of stains, and by the method of separating mixtures of organisms on plates of nutrient media.  
Though it had been known since the nineteenth century that bacteria are a cause of many diseases, no effective antibacterial treatments were available until the 20th centuey.  In 1910, Paul Ehrlich developed the first antibiotic, by changing dyes that selectively stained Treponema pallidum—the spirochaete that causes syphilis—into compounds that selectively killed the pathogen.  Ehrlich was awarded a 1908 Nobel Prize for his work on immunology, and pioneered the use of stains to detect and identify bacteria, with his work being the basis of the Gram stain and the Ziehl–Neelsen stain. 
A major step forward in the study of bacteria came in 1977 when Carl Woese recognised that archaea have a separate line of evolutionary descent from bacteria.  This new phylogenetic taxonomy came from the sequencing of 16S ribosomal RNA and divided prokaryotes into two evolutionary domains as part of the three-domain system.