The static potential between an infinitely heavy quark and antiquark
is derived in the framework of perturbative QCD to three loops by
performing a full calculation of the two-loop diagrams and using the
renormalization group. The contribution of massless fermions is
included.