DNA extraction is the technique used to remove DNA from cell membranes, proteins, and other cellular components in a biological sample.