Triptans work by blocking serotonin receptors on sensory nerves. They can reduce the duration of a migraine attack by blocking specific serotonin receptors in the trigeminal nerve (one of three cranial nerves). These nerves are responsible for sensory functions like taste, smell, and pain sensation. Triptans can also work by inhibiting the release of serotonin from neurons; once this happens, a migraine attack will end. It prevents pain signals from reaching the brain and causing symptoms.