The green color of leaves is due to its chlorophyll content,magnesium is an important component of chlorophyl.