HNoMS Heimdal was a Norwegian warship built at Akers mekaniske verksted in Kristiania, Norway in 1892 with build number 137. She was built to patrol Norwegian territorial waters and act as a rescue ship for sea travelers. Throughout her life she served in numerous roles; as a royal yacht (1892–1905, 1905–1908), command ship (1905), offshore patrol vessel and rescue ship (1892–1940), headquarters and depot ship (1940–1943), accommodation ship (1945–1946) and civilian cargo ship (1946–1947).