The generation of β-lactamases by bacteria affords resistance to several classes of β-lactam antibiotics, including penicillins and cephalosporins. Nitrocefin is a chromogenic cephalosporin substrate commonly used to detect β-lactamases in bacteria. The presence of β-lactamase activity is indicated by the appearance of a red color that is proportional in intensity to the original concentration of nitrocefin.