Substance P is a member of the tachykinin neuropeptide family and is primarily involved in the nervous system. It acts as a neurotransmitter and neuromodulator, transmitting signals between neurons. Its main function is related to the transmission of pain signals, but it also has roles in regulating mood, anxiety, and the body's response to stress.