In the context of cancer, nonsense mutations can disrupt normal cellular functions by inactivating tumor suppressor genes or activating oncogenes. For example, a nonsense mutation in the p53 gene can lead to a nonfunctional p53 protein, which normally helps prevent uncontrolled cell growth. This loss of function allows cells to proliferate uncontrollably, contributing to cancer development.