This study investigated how anatomical and functional network properties of stimulation targets affect behavioral and physiological outcomes. Similar to past studies, the team delivered closed-loop stimulation as 47 neurosurgical patients studied and recalled word lists. Multivariate classifiers, trained to predict momentary lapses in memory function, triggered the stimulation of the lateral temporal cortex (LTC) during the study phase of the task. We found that LTC stimulation specifically improved memory when delivered to targets near white matter pathways. Memory improvement was largest for targets near white matter that also showed high functional connectivity to the brain’s memory network. These targets also reduced low-frequency activity in this network, an established marker of successful memory encoding. These data reveal how anatomical and functional networks mediate stimulation’s behavioral and physiological effects, provide further evidence that closed-loop LTC stimulation can improve episodic memory, and suggest a method for optimizing neuromodulation through improved stimulation targeting.