This scientific commentary refers to ‘Closed-loop stimulation of the medial septum terminates epileptic seizures’, by Takeuchi et al. (doi:10.1093/brain/awaa450), and ‘Medial septal GABAergic neurons reduce seizure duration upon optogenetic closed-loop stimulation’, by Hristova et al. (doi:10.1093/brain/awab042)