When you consume spicy foods, your brain releases endorphins and dopamine. This chemical reaction is why many people develop a craving for spicy foods after acquiring a taste for them.