A sebaceous cyst can become infected and develop into a boil, a collection of pus. Bacterial infection is a common cause of a boil.