ABSTRACTBrain stimulation can be used to engage and modulate rhythmic activity in cortical networks. However, the outcomes have been shown to be impacted by behavioral states and endogenous brain fluctuations. To better understand how this intrinsic oscillatory activity controls the brain’s susceptibility to stimulation, we analyzed a computational model of the thalamocortical system in both the rest and task states, to identify the mechanisms by which endogenous alpha oscillations (8Hz-12Hz) are impacted by periodic stimulation. Our analysis shows that the differences between different brain states can be explained by a passage through a bifurcation combined to stochastic resonance - a mechanism whereby irregular fluctuations amplify the response of a nonlinear system to weak signals. Indeed, our findings suggest that modulating brain oscillations is best achieved in states of low endogenous rhythmic activity, and that irregular state-dependent fluctuations in thalamic inputs shape the susceptibility of cortical population to periodic stimulation.