Magnesium is an important nutrient ion in green plant as it is an essential component of:

Chlorophyll

Protein

Cell sap

Glucose