Function of agar in nutrient agar?

agar is the solidifying agent