Mastitis refers to inflammation of breast tissue. Often this is related to breastfeeding (lactational mastitis), although it can be caused by infection. Bacteria can enter at the nipple and back-track into the ducts, causing infection and inflammation. Mastitis caused by infection may precede the development of an abscess.