Why do unripe oranges turn from green to orange upon ripening?

Unripe oranges contain chloroplasts with chlorophyll (green).

During ripening, chloroplasts convert into chromoplasts, which contain carotenoids (orange pigments)