Agar or agar agar is a gelatinous substance derived from seaweed. Historically and in a modern context, it is chiefly used as an ingredient in desserts throughout Japan, but in the past century found extensive use as a solid substrate to contain culture medium for microbiological work.