 During Nazi German occupation in 1939–1945, the German Gestapo investigation unit and court were established at the prison.The Czech prison guards were replaced by Waffen SS members.Thousands of Czech people, from members of the resistance to alleged black marketeers, were detained here before being sent to execution sites, especially the Kobylisy Shooting Range, to other prisons within Nazi Germany, or to concentration camps.