When they’re threatened, the valve between the chambers opens and the substances combine in a violent chemical reaction that sends a corrosive spray shooting out of the glands, passing through a hardened chamber that protects the beetle’s internal tissues.