We review the construction of generalized integrable hierarchies of pa
rtial differential equations, associated to affine Kac-Moody algebras,
that include those considered by Drinfel'd and Sokolov. These hierarc
hies can be used to construct new models of 2D quantum or topological
gravity, as well as new W-algebras.