Electrocorticography (ECoG) is a neurosurgical technique that involves placing electrodes directly on the exposed surface of the brain to record electrical activity, providing high temporal and spatial resolution data. It is primarily used for pre-surgical planning in epilepsy treatment and brain-computer interface research, offering insights into brain function and connectivity that are not accessible through non-invasive methods.