An important evolutionary advance within one line of the green algae (the charophyceans) was the origination of flavonoid biosynthesis.
Getting from green algae to land plants.
Flavonoids are involved in many plant ‘behaviors’ like pollination, herbivore defense, etc. Also UV-B protection by kaempferol.
One of many flavonoids, this one is involved with UV-B protection.