Sunlight may lead to changes in disinfection byproducts (DBPs) formation potentials of source water via transforming dissolved organic matter (DOM); however, the underlying mechanisms behind these changes remain unclear. This work systematically investigated the effect of photochemical transformation of DOM from reservoir water (DOM Re ) and micropolluted river water (DOM Ri ) after 36 h of simulated sunlight irradiation (equivalent to one month under natural sunlight) on DBPs formation. Upon irradiation, high molecular weight (MW) and aromatic molecules tended to be mineralized or converted into low-MW and highly oxidized (O/C > 0.5) ones which might react with chlorine to generate high levels of DBPs, resulting in an elevation in the yields (μg DBP/mg C) of almost all the measured DBPs and the quantities of unknown DBPs in both DOM samples after chlorination. Additionally, DOM Ri contained more aromatic molecules susceptible to photooxidation than DOM Re . Consequently, irradiated DOM Ri exhibited a greater increase in the formation potentials of haloacetonitriles, halonitromethanes, and specific regulated DBPs, with nitrogenous DBPs being responsible for the overall rise in the calculated cytotoxicity following chlorination. This work emphasized the importance of a comprehensive removal of phototransformation products that may serve as DBPs precursors from source waters, especially from micropolluted source waters.