We propose a method for the construction of exact solutions to the nonlinear heat
equation based on the classical method of separation of variables and its generalization.
We consider substitutions, which reduce the nonlinear heat equation to a system of
two ordinary differential equations and construct the classes of exact solutions by
the method of generalized separation of variables.