The submarine was laid down in mid 1915 and launched in January 1917. The still unfinished U-boat sank in the harbor at Fiume in June but was raised, repaired, and relaunched in October. After her commissioning in November, U-22 patrolled off the Po River estuary and, later, in the northern Adriatic out of Trieste.