In this paper we show that the geodesic flow on a compact locally symmetric space of nonpositive curvature has a unique invariant measure of maximal entropy. As an application to dynamics we show that closed geodesics are uniformly distributed with respect to this measure. Furthermore, we prove that the volume entropy is minimized at a compact locally symmetric space of nonpositive curvature among all conformally equivalent metrics with the same total volume.