Poland regained its independence in 1918 after years of being occupied by other countries and fighting for freedom through uprisings. On November 11, 1918, as World War I ended, the Regency Council created by Austria and Germany handed over control of the Polish army to Józef Piłsudski, making him the informal leader of the newly independent Polish country.