The history of Berlin starts with its foundation in the 12th century. It became the capital of the Margraviate of Brandenburg in 1237, and later of Brandenburg-Prussia, and the Kingdom of Prussia. Prussia grew about rapidly in the 18th and 19th centuries and formed the basis of the German Empire in 1871. The empire would survive until 1918 when it was defeated in World War I.
After 1900 Berlin became a major world city, known for its leadership roles in science, the humanities, music, museums, higher education, government, diplomacy and military affairs. It also had a role in manufacturing and finance.
