The Visby class was a Swedish World War II destroyer class. During the years 1942–1944 four ships, , , and , were built and delivered to the Swedish navy. The ships were a part of Sweden's military buildup during the war. Under this period the ships were used as neutral guards and escort ships. In 1965 the ships were modified and rebuilt as frigates. Two of the ships were decommissioned in 1978 and the last two followed in 1982. Orders During the first years of the War Sweden's armed forces went through a massive reinforcement. In 1941, as part of this build-up, the Swedish government ordered four new destroyers for the Swedish navy, of which two were replacements for three destroyers sunk in an explosion on 17 September that year. The new class would be based on the older that were classified as a "Town-class destroyer" and because of this classified as "Modified Town-class destroyers", (modifierad Stadsjagare). In total four ships were built, two at the Götaverken-shipyard and two at the Eriksbergs shipyard. Design The design was largely based on the Göteborg-class destroyer, with a similar main armament of three M/24 Bofors guns in three single mounts, but in an improved arrangement, with the second gun mounted aft, firing over the third gun rather than between the funnels as in the earlier destroyers, thus improving fields of fire. Anti-aircraft armament was also improved, consisting of four Bofors 40 mm guns in a twin mount on the ship's centreline between the banks of torpedo tubes, and two single mounts mounted port and starboard further forward. These were supplemented by several 20 mm cannon, also by Bofors. The ships' torpedo armament remained six torpedo tubes in two triple mounts. The ships were fitted for minelaying, with up to 20 mines being carried, while anti-submarine armament consisted of four depth charge throwers. The hull was lengthened compared with the Göteborg class, giving a length between perpendiculars of and an overall length of with a beam of and a draught of . Displacement was standard and full load. A square stern was fitted. Like the Göteborg class, the superstructure was built using light alloys to save weight. Three 3-drum boilers fed superheated steam to two de Laval geared steam turbines, driving two shafts and giving , allowing a speed of to be reached. Rebuilds From 1957 to 1959, Hälsingborg and Kalmar were modified, removing