The main role of DNA in the cell is the long-term storage of information. This backbone carries four types of molecules called bases and it is the sequence of these four bases that encodes information. The major function of DNA is to encode the sequence of amino acid residues in proteins, using the genetic code.