Oxytocin is a neuropeptide critical for maternal physiology and social behavior, and is thought to be dysregulated in several neuropsychiatric disorders. Despite the biological and neurocognitive importance of oxytocin signaling, methods are lacking to activate oxytocin receptors with high spatiotemporal precision in the brain and peripheral mammalian tissues. Here we developed and validated caged analogs of oxytocin which are functionally inert until cage release is triggered by ultraviolet light. We examined how focal versus global oxytocin application affected oxytocin-driven Ca2+ wave propagation in mouse mammary tissue. We also validated the application of caged oxytocin in the hippocampus and auditory cortex with electrophysiological recordings in vitro, and demonstrated that oxytocin uncaging can accelerate the onset of mouse maternal behavior in vivo. Together, these results demonstrate that optopharmacological control of caged peptides is a robust tool with spatiotemporal precision for modulating neuropeptide signaling throughout the brain and body.