During the final years of World War II, the Allies gained control of the North Atlantic because they used better anti-submarine technology.
An anti-submarine technology that was developed during World War II was the radar. Due to this technology, submarines often submerged and always had their guard up.