Visible-light-driven switchable divergent di- or tricarboxylation of allylic alcohols with CO is realized to selectively upgrade multiple CO units to polycarboxylic acids. The derivatization of corresponding polycarboxylic acids could deliver the potential functional materials in luminescence and biomaterials.