Each successive level of protein folding ultimately contributes to its shape and therefore its function.
Denaturation is a process in which proteins lose their shape and, therefore, their function because of changes in pH or temperature.