The spiciness of chillis is due to the presence of compounds called capsaicinoids.The two compounds above are the main capsaicinoids in chilli peppers.They cause a burning sensation when they come into contact with mucous membranes,dur to their interaction with pain and heat sensing neurons.