The flotilla was founded at Gotenhafen in January 1940 under the command of Korvettenkapitän Ernst Sobe as Taktische Unterseebootsausbildungsflottille ("Tactical U-boat Training Flotilla"), and was redesignated 27.