Prussia was a German kingdom and historic state originating out of the Duchy of Prussia and the Margraviate of Brandenburg. For centuries the House of Hohenzollern ruled Prussia successfully expanding its size by way of an unusually well-organized and effective army. Prussia shaped the history of Germany with its capital in Berlin after 1451. After 1871 Prussia was increasingly merged into Germany losing its distinctive identity.