The gut-brain axis involves multiple pathways including the vagus nerve, hormonal signaling, and immune system responses. Gut microbiota play a pivotal role in this communication by producing neurotransmitters and other signaling molecules that can affect brain function and behavior.