Summary:

You win a Diplomatic Victory by winning an election for the position of World Leader once the UN is constructed. If going this route, remember that city-states will vote for whoever has the highest Influence Points level, unless they have been "Liberated" by a civilization, in which case they'll vote for their liberator. (See the section on Victory for details.)