Cued spatial attention modulates functionally relevant alpha rhythms in visual cortices in humans. Here, we present evidence for analogous phenomena in primary somatosensory neocortex (SI). Using magnetoencephalography, we measured changes in the SI mu rhythm containing mu-alpha (7-14 Hz) and mu-beta (15-29 Hz) components. We found that cued attention impacted mu-alpha in the somatopically localized hand representation in SI, showing decreased power after attention was cued to the hand and increased power after attention was cued to the foot, with significant differences observed 500-1100 ms after cue. Mu-beta showed differences in a time window 800-850 ms after cue. The visual cue also drove an early evoked response beginning ∼70 ms after cue with distinct peaks modulated with cued attention. Distinct components of the tactile stimulus-evoked response were also modulated with cued attention. Analysis of a second dataset showed that, on a trial-by-trial basis, tactile detection probabilities decreased linearly with prestimulus mu-alpha and mu-beta power. These results support the growing consensus that cue-induced alpha modulation is a functionally relevant sensory gating mechanism deployed by attention. Further, while cued attention had a weaker effect on the allocation of mu-beta, oscillations in this band also predicted tactile detection.