A change in the DNA that leads to a reduced or complete loss of function of a protein.