Synthetic dyes are typically derived from petroleum products through complex chemical processes. These processes involve the synthesis of aromatic compounds, which are further modified to produce a wide array of colors. The production of synthetic dyes involves various chemical reactions, which can result in the formation of by-products such as heavy metals and other potentially toxic substances.