Electroencephalography (EEG) and functional magnetic resonance imaging (fMRI) are noninvasive methods for measuring brain activity. EEG provides a very high temporal resolution, whereas fMRI provides high spatial resolution. A deeper insight into brain functions can be achieved by scanning the brain activity with simultaneous EEG-fMRI. The main downside of simultaneous EEG-fMRI scanning is a high EEG signal contamination caused by electromagnetic induction due to changes in magnetic flux. We presented a robust procedure and algorithms for artifact removal from EEG signal. We analyzed the performance of the procedure and showed a satisfactory artifact reduction for further analyses.