From 1945 until 1990, Germany was divided into two countries: East Germany and West Germany. East Germany had a Communist government and West Germany was a democracy. The city of Berlin was also divided. East Berlin became the capital of East Germany and West Berlin was a part of West Germany.