Mastitis is an inflammation of the mammary gland that can decrease milk production and quality. It is usually caused by bacterial infections such as Streptococcus agalactiae. Mastitis increases somatic cell counts in milk and decreases important milk components like lactose, casein and fat. It also changes the protein composition of milk. These changes negatively impact milk quality and the production of dairy products. To control mastitis and improve milk quality, farmers should focus on udder health through proper milking procedures, equipment maintenance, environmental management and treatment of clinical cases.