Capsaicin, from Capsicum plants, is the main cause of pepper spray's effects. It irritates the eyes and skin, causing a burning sensation.