The purpose of DNA is to store hereditary information within the cells of all living things.
Hope this helps.