Substance P is a neuropeptide, which is a type of neurotransmitter. It consists of 11 amino acids and belongs to the tachykinin family of peptides. It plays a crucial role in transmitting pain signals from the peripheral nervous system to the central nervous system.