Electroencephalography (EEG) is a neuroimaging technique that records electrical activity in the brain by placing electrodes on the scalp. It provides real-time data about brain function and is commonly used to study various neurological conditions, cognitive processes, and sleep patterns. EEG is particularly valued for its high temporal resolution, allowing researchers to observe brain activity on a millisecond timescale.