We show that for every affine Lie algebra G and subalgebra H there exists an exactly solvable two-dimensional conformal field theory, and give a procedure for explicitly determining its correlation functions and partition function given those for the Wess-Zumino-Witten models with symmetry algebras G and H.