During the May 1926 "coup d'état", Piłsudskiite forces attacked the legal government of Prime Minister Wincenty Witos. Loyal to the Witos Government, General Tadeusz Jordan-Rozwadowski ordered Zagórski on May 12 to take command of the Warsaw Air Group from Ludomił Rayski and to initiate bombing of pro-Piłsudski forces. Zagórski was arrested in Warsaw on May 15, 1926, along with four other generals who had supported the legal government, including his superior General Rozwadowski. The five prisoners-of-war were imprisoned in Wilno. Zagórski was accused to have had allegedly flown missions and personally bombed Piłsudski's force despite there being no evidence for these accusations. In October 1926, the five prisoners were cleared of all charges and approved for release, yet the army prosecutor lengthened their arrests instead, citing the prisoners to be threats to the interests of the Polish Army. A new round of charges were created against Zagórski and his role in the Francopol Affair, although they were never brought up against him.