The first merchant ship lost to U-boats was an 866-ton British steamer outbound from Grangemouth to Stavanger with a cargo of coal, iron plate, and oil. Glitra was stopped by U-17 on 20 October 1914; and a boarding party gave Glitra's crew time to disembark into lifeboats before sinking the ship by opening valves to flood holds with seawater. The procedure followed customs originated by surface ships. International maritime law required the naval vessel to make adequate provisions for the safety of the merchant crew and passengers before sinking their ship.
Imperial Germany focused use of U-boats against merchant shipping in response to British blockade of German merchant shipping by declaring the entire North Sea a war zone on 2 November 1914. On 5 February 1915 Germany published notice declaring a war zone in all waters around Great Britain and Ireland. Within that zone, Germany conducted unrestricted submarine warfare against merchant ships from 18 February 1915 without warning and without regard to safety of their crew.
U-boats still conformed to earlier conventions of stopping ships when possible, but the typical submarine mounted only a single gun. The two procedures for sinking merchant ships were compared in 1915. Merchant ships escaped 42% of torpedo attacks made without warning, in comparison to 54% escaping from conventional surface attempts to stop the ship. Guns aided escape and approximately one submarine per month was sunk (most by Q-ships) while attempting a surfaced stop.
The number of civilian merchant ships armed with anti-submarine guns rose to 1,749 by September 1916 and 2,899 by February 1917. The United States responded to unrestricted submarine warfare by severing diplomatic relations with Germany on 3 February 1917. A filibuster in the United States Senate temporarily delayed President Woodrow Wilson's proposal on 26 February 1917 to arm United States merchant ships, but arming started in March under an executive order.
The low-angle guns were typically in the 3-inch to 6-inch range (75-150 mm) depending on the size of the ship. Rifle-caliber machine guns were augmented or replaced by 20 mm Oerlikon as they became available. The High-Angle QF 12pdr mount was the most common anti-aircraft gun, and later ships sometimes received 40 mm Bofors guns.
Untrained gunners posed significant risk to friendly aircraft in the absence of efficient communications. DEMS guns were manned by 24,000 Royal Navy personnel and 14,000 men of the Royal Artillery Maritime Regiment. One-hundred-fifty-thousand merchant sailors were trained to assist by passing ammunition, loading, and replacing casualties among the military gun crew. Royal Artillery personnel had initially provided anti-aircraft protection by bringing their own machine-guns aboard ships operating close to the British Isles. DEMS gunners were often retired military personnel and young "Hostilities Only" ratings commanded by a petty officer or Royal Marine sergeant. Large ships sometime embarked a junior naval officer to command the DEMS gunners.
Canada placed guns on 713 ships.
In 1944, during preparations for the invasion of France called Operation Overlord there was deep concern over the danger to Allied aircraft from the large number of DEMS involved in the landings. A request for volunteer aircraft recognition experts from the Royal Observer Corps produced 1,094 highly qualified candidates, from which 796 were selected to perform valuable aircraft recognition duties as seaborne volunteers.
These Seaborne Observers were organised by Group Commandant C.G.Cooke and trained at the Royal Bath Hotel Bournemouth before the volunteers temporarily joined the Royal Navy with the rank of Petty Officer (Aircraft Identifier). The volunteers continued to wear their ROC uniforms, but wore SEABORNE shoulder flashes and a Royal Navy brassard with the letters RN. During the D-day landings two Seaborne observers were allocated to each of the Defensively Equipped Merchant Ships, both British and American vessels. The ROC volunteers were given direct control of each ship's anti aircraft batteries, immediately reducing the previously high level of friendly fire, or collateral damage incidents as they are now known. Their success is measured by a signal from Wing Commander P.B. Lucas, Air Staff Officer who reported:
Twenty two Seaborne observers survived their ships being sunk, two lost their lives and several more were injured during the landings. The Seaborne operation was an unqualified success and in recognition, His Majesty King George Vl approved the wearing of the SEABORNE flash as a permanent feature of the uniform. In addition, ten Seaborne members were mentioned in despatches. After the invasion and just before his death Air Chief Marshal Trafford Leigh-Mallory wrote the following to be circulated to all ROC personnel:
Today there is a Seaborne Observers’ Association for the dwindling number of survivors. Air Vice-Marshal George Black CB OBE AFC RAF (Rtd), a former Commandant ROC, is the honorary President.
Neutrality Acts prevented arming of United States flagged merchant ships until 17 November 1941, although American-owned ships under Panamanian registry had been armed earlier. Guns were manned by United States Navy Armed Guard. United States began equipping ships of other nations with guns and United States Navy Armed Guard on 24 January 1942. United States policy was stated by the Vice Chief of Naval Operations on 19 August 1942: "Ships sailing independently should be armed. Ships sailing in regularly made-up convoys, other than ships bound to North Russia or tankers en route to the United Kingdom, may sail unarmed if the urgency of delivery of their cargo warrants it.
The United States followed the British practice of a single large gun aft. Early United States installations included low-angle 4"/50 caliber guns (Mark 9) removed from old Wickes and Clemson class destroyers. The first installations of dual-purpose 5"/38 caliber guns began in September, 1942, on new ships over 10,000 tons. Victory ships carried a 3-inch gun on the bow, 20 mm machine gun tubs port and starboard between the first and second holds; a 2nd pair of 20 mm guns on the bridge wings, a 3rd pair on the after edge of the superstructure, and a 4th pair between the after (Number 5) hatch and the 5"/.38 caliber gun on the stern.