How does War Weariness work?
War weariness (WW) is the effects of prolonged warring on your empire. At the beginning of the game it starts at 0, however, as the game progresses, this can increase, affecting the happiness of your cities. WW can go up if certain things, some of which are listed next, happen: you kill an enemy unit, your unit is killed, you capture a unit, you capture a city, or you launch a nuke, among others. The length of your war also affects the percent of war weariness in your cities. Each city will have its own unhappiness from WW number, based on factors including population, certain improvements, world size, and game settings, such as Always War. For a posting of the formula, as well as contributing factors for WW, visit this thread by Krikkitone.