Frederik's University was founded in Christiania (later renamed Oslo), a small city at that time. Circumstances then changed dramatically one year into the commencement of the university, as Norway proclaimed independence. However, independence was somewhat restricted, as Norway was obliged to enter into a legislative union with Sweden based on the outcome of the War of 1814. Norway retained its own constitution and independent state institutions, although royal power and foreign affairs were shared with Sweden. At a time when Norwegians feared political domination by the Swedes, the new university became a key institution that contributed to Norwegian political and cultural independence. The main initial function of The Royal Frederick University was to educate a new class of upper-echelon civil servants, as well as parliamentary representatives and government ministers. The university also became the centre for a survey of the country—a survey of culture, language, history and folk traditions. The staff of the university strove to undertake a wide range of tasks necessary for developing a modern society. Throughout the 1800s, the university's academic disciplines gradually became more specialised. One of the major changes in the university came during the 1870s when a greater emphasis was placed upon research, the management of the university became more professional, academic subjects were reformed, and the forms of teaching evolved. Classical education came under increasing pressure. When the union with Sweden was dissolved in 1905, the university became important for producing highly educated experts in a society which placed increasing emphasis on ensuring that all its citizens enjoy a life of dignity and security. Education, health services and public administration were among those fields that recruited personnel from the university's graduates. 1900–1945 Research changed qualitatively around the turn of the century as new methods, scientific theories and forms of practice changed the nature of research. It was decided that teachers should arrive at their posts as highly qualified academics and continue academic research alongside their role as teachers. Scientific research—whether to launch or test out new theories, to innovate or to pave the way for discoveries across a wide range of disciplines—became part of the increased expectations placed on the university. Developments in society created a need for more and more specialised and practical knowledge, not merely competence in theology or law, for example. The university strove to meet these expectations through increasing academic specialisation. The position of rector was established by Parliament