Code Geass is set in an alternate universe where three superpowers, the Holy Britannian Empire, the Chinese Federation, and the Euro Universe have divided the world between them (with the exception of an independent Australia) and maintain a tentative balance for the first part of the series. The balance shifts in the second season as the E.U. has much of its territory conquered by Britannia while Lelouch engineers a revolution in the Chinese Federation and creates a new alliance of countries, the United Federation of Nations, reducing the number of superpowers to two.