Most German midget submarines were developed late in World War II in an attempt to stop the Allied invasion of Europe and used later to disrupt its supply lines. As a result, the submarines mostly engaged in open water attacks rather than harbour penetration.[17][18]