Music affects mood through its interaction with the brain's limbic system, which is responsible for emotions and memory. When we listen to music, it triggers the release of neurotransmitters like dopamine and serotonin, which are associated with pleasure and happiness. Upbeat and lively music can increase these feel-good neurotransmitters, leading to a positive mood.