The primary cause of mastitis is the entry of bacteria into the breast tissue, usually through a cracked or sore nipple. The most common bacteria responsible are Staphylococcus aureus and Streptococcus. Other contributing factors include blocked milk ducts, incomplete emptying of the breast during breastfeeding, and tight clothing that restricts milk flow.