This article describes in detail a protocol to electroporate in utero the cerebral cortex and the hippocampus at E14.5 in mice. We also show that this is a valuable method to study dendrites and spines in these two cerebral regions.