The Porpoise class was an eight-boat class of diesel-electric submarines operated by the Royal Navy. This class was originally designated patrol submarines, then attack. They were the first conventional British submarines to be built after the end of World War II. Their design was, in many ways, influenced by the German World War II-era Type XXI U-boats.