Capsaicin is an alkaloid compound that belongs to a group of compounds known as capsaicinoids. These compounds are responsible for the spiciness in peppers and have been used in topical analgesics for their pain-relieving properties. Capsaicin is also used in pepper spray, a non-lethal self-defense tool.