[en] A derivation of the closed-time path formalism of quantum field theory is given at finite temperatures. The derivation is based on a solution found for the diagonal element of the closed-time path transition amplitudes at zero temperatures, the performance of an averaging over the temperature-dependent statistical distribution and finally the application of the action principle for a closed-time path. (author)