Prior research suggests that task sets facilitate coherent, goal-directed behavior by providing an internal, contextual frame that biases selection toward context-relevant stimulus attributes and responses. Questions about how task sets are engaged, maintained, and shifted have recently become a major focus of research on executive control processes. We employed dense-array (128-channel) event-related potential (ERP) methodology to examine the dynamics of brain systems engaged during the preparation and implementation of task switching. The EEG was recorded while participants performed letter and digit judgments to pseudorandomly-ordered, univalent (#3, A%) and bivalent (G5) stimulus trials, with the appropriate task cued by a colored rectangle presented 450 ms before target onset. Results revealed spatial and temporal variations in brain activity that could be related to preparatory processes common to both switch and repeat trials, switch-specific control processes engaged to reconfigure and maintain task set under conflict, and visual priming benefits of task repetition. Despite extensive practice and improvement, both behavioral and ERP results indicated that subjects maintained high levels of executive control processing with extended task engagement. The patterns of ERP activity obtained in the present study fit well with functional neuroanatomical models of self-regulation of action. The frontopolar and right-lateralized frontal switch effects obtained in the present study are consistent with the role of these regions in adapting to changing contextual contingencies. In contrast, the centroparietal P3b and N384 effects related to the contextual ambiguity of bivalent trials are consistent with the context monitoring and updating functions associated with the posterior cingulate learning circuit.