At first, the chancellor was only an advisor to the emperor. The emperor chose the chancellor. Later this changed. Under the 1919 Weimar Constitution, the elected President chose the chancellor. In Nazi Germany, politicians ignored the constitution. The chancellor became a dictator under Adolf Hitler. During Allied occupation, there was no chancellor in East or West Germany. This changed after the 1949 Basic Law. This made the chancellor the most important job in the government. The president became less important.