An optimal Wegner estimate and its application to the global continuity of the integrated density of states for random Schrödinger operators