A mutualistic association between a fungus and alga or cyanobacterium.