Cayenne pepper contains capsaicin, the substance that makes the pepper hot to mammals, including cats and humans. While cayenne pepper may deter some cats once they step on or taste something coated with it, it may not be effective in repelling all felines.