On June 5, 1918, attacks by German U-boats began off the North Carolina coast. The raids were the first against the state by a foreign government since the War of 1812, and the initial assault lasted for four days. During that time one German submarine, U-151, sank four Allied ships.