Beta and gamma frequency neuronal oscillations have been implicated in top–down and bottom–up attention. In this study, we used rhythmic TMS to modulate ongoing beta and gamma frequency neuronal oscillations in frontal and parietal cortex while human participants performed a visual search task that manipulates bottom–up and top–down attention (single feature and conjunction search). Both task conditions will engage bottom–up attention processes, although the conjunction search condition will require more top–down attention. Gamma frequency TMS to superior precentral sulcus (sPCS) slowed saccadic RTs during both task conditions and induced a response bias to the contralateral visual field. In contrary, beta frequency TMS to sPCS and intraparietal sulcus decreased search accuracy only during the conjunction search condition that engaged more top–down attention. Furthermore, beta frequency TMS increased trial errors specifically when the target was in the ipsilateral visual field for the conjunction search condition. These results indicate that beta frequency TMS to sPCS and intraparietal sulcus disrupted top–down attention, whereas gamma frequency TMS to sPCS disrupted bottom–up, stimulus-driven attention processes. These findings provide causal evidence suggesting that beta and gamma oscillations have distinct functional roles for cognition.