Later Piłsudski became a soldier and wanted to make Poland independent again. At the beginning of World War I, most people, who agreed with Pilsudski, helped Austria-Hungary, because they preferred it to Russia. When they stopped helping Austria-Hungary and Germany, Piłsudski was arrested. When the War was over, he was freed. He came to Warsaw in November 1918 and helped to organize Poland. Then, for a short time, he became its leader (not president). Gabriel Narutowicz became Poland's first president, but he was shot by his enemy a few days later and Stanisław Wojciechowski became the next president. Poland's situation was not good and the politicians argued a lot. Many people, especially the soldiers, wanted Piłsudski back, so he told Wojciechowski to resign. When Wojciechowski said no, Piłsudki took over with the help of the Army. Parliament elected Ignacy Mościcki to be the new president, but he had to do what Piłsudski wanted him to do. Together, they changed the Polish constitution and made a lot of other changes.