Automatic shaping of perception by past experiences is common in many cognitive functions, reflecting the exploitation of temporal regularities in environments. A striking example is serial dependence, i.e., current perception is biased by previous trials. However, the neural implementation of its operational circle in human brains remains unclear. In two experiments with Electroencephalography (EEG) / Magnetoencephalography (MEG) recordings and delayed-response tasks, we demonstrate a two-stage ’repulsive-then-attractive’ past-present interaction mechanism underlying serial dependence. First, past-trial reports serve as a prior to be reactivated during both encoding and decision-making. Crucially, past reactivation interacts with current information processing in a two-stage manner: repelling and attracting the present during encoding and decision-making, and arising in the sensory cortex and prefrontal cortex, respectively. Finally, while the early stage occurs automatically, the late stage is modulated by task and predicts bias behavior. Our findings might also illustrate general mechanisms of past-present influences in neural operations.