In the 19th century France built a new French colonial empire second only to the British Empire. It was humiliated in the Franco-Prussian War of 1870–71, which marked the rise of Germany to dominance in Europe. France allied with Great Britain and Russia and was on the winning side of the First World War. It was easily defeated early in the Second World War. It fought losing colonial wars in Indochina (ending in 1954) and Algeria (ending in 1962). The Fourth Republic collapsed and the Fifth Republic began in 1958 to the present. Under Charles De Gaulle it tried to block American and British influence on the European community. Since 1945 France has been a founding member of the United Nations, of NATO, and of the European Coal and Steel Community (the European Union's predecessor). As a charter member of the United Nations, France holds one of the permanent seats in the Security Council and is a member of most of its specialized and related agencies.