Nucleobases can be influenced by several environmental factors, including exposure to ultraviolet light, which can cause thymine dimers that disrupt DNA replication. Chemical agents like polycyclic aromatic hydrocarbons and certain heavy metals can also induce nucleobase modifications. These agents can form adducts with DNA, causing structural changes that may lead to errors during DNA replication and increased mutagenesis.