  This paper is meant to be a short review and summary of recent results on the
structure of finite and affine classical W-algebras, and the application of the
latter to the theory of generalized Drinfeld-Sokolov hierarchies.
