A region of DNA that controls a hereditary characteristic.