What is the major function of leaves?

The major function of leaves is to photosynthesize.