A DNA marker is a set of known DNA fragments of specific sizes used as a reference in gel electrophoresis. It helps determine the size of unknown DNA samples by comparing the migration pattern of the marker to that of the sample. DNA markers are essential for estimating the molecular weight or size of separated DNA fragments during analysis.