In our daily lives, we are confronted with a large amount of information. Because only a small fraction can be encoded in long-term memory, the brain must rely on powerful mechanisms to filter out irrelevant information. To understand the neuronal mechanisms underlying the gating of information into long-term memory, we employed a paradigm where the encoding was directed by a “Remember” or a “No-Remember” cue. We found that posterior alpha activity increased prior to the “No-Remember” stimuli, whereas it decreased prior to the “Remember” stimuli. The sources were localized in the parietal cortex included in the dorsal attention network. Subjects with a larger cue-modulation of the alpha activity had better memory for the to-be-remembered items. Interestingly, alpha activity reflecting successful inhibition following the “No-Remember” cue was observed in the frontal midline structures suggesting preparatory inhibition was mediated by anterior parts of the dorsal attention network. During the presentation of the memory items, there was more gamma activity for the “Remember” compared to the “No-Remember” items in the same regions. Importantly, the anticipatory alpha power during cue predicted the gamma power during item. Our findings suggest that top-down controlled alpha activity reflects attentional inhibition of sensory processing in the dorsal attention network, which then finally gates information to long-term memory. This gating is achieved by inhibiting the processing of visual information reflected by neuronal synchronization in the gamma band. In conclusion, the functional architecture revealed by region-specific changes in the alpha activity reflects attentional modulation which has consequences for long-term memory encoding. Hum Brain Mapp 35:3972–3987, 2013. © 2013 Wiley Periodicals, Inc.