The extent to which changes in brain activity can foreshadow human error is uncertain yet has important theoretical and practical implications. The present study examined the temporal dynamics of electrocortical signals preceding a lapse of sustained attention. Twenty-one participants performed a continuous temporal expectancy task, which involved continuously monitoring a stream of regularly alternating patterned stimuli to detect a rarely occurring target stimulus whose duration was 40% longer. The stimulus stream flickered at a rate of 25 Hz to elicit a steady-state visual-evoked potential (SSVEP), which served as a continuous measure of basic visual processing. Increasing activity in the alpha band (8-14 Hz) was found beginning approximately 20 s before a missed target. This was followed by decreases in the amplitude of two event-related components over a short pretarget time frame: the frontal P3 (3-4 s) and contingent-negative variation (during the target interval). In contrast, SSVEP amplitude before hits and misses was closely matched, suggesting that the efficacy of ongoing basic visual processing was unaffected. Our results show that the specific neural signatures of attentional lapses are registered in the EEG up to 20 s before an error.