We review various aspects of W algebra symmetry in two-dimensional conformal field theory and string theory. We pay particular attention to the construction of W algebras through the quantum Drinfeld-Sokolov reduction and through the coset construction.