Our data suggest that epileptiform activity in the hippocampus caused by impaired inhibition may be controlled by optogenetic silencing of principal neurons and potentially can be developed as an alternative treatment for epilepsy.