Interestingly, we demonstrate that the dramatic shift of the absorption edge is due to the formation of azo-linkages in the PCN structure, an aspect that has been largely overlooked so far. Finally, we elucidate and discuss the effects of the azo moieties on the charge transfer dynamics and photocatalytic activity of the obtained photocatalysts.