On 28 July 1943 Martinsen left his command and returned to Denmark to establish and command the Schalburg Corps as a recruitment unit for the Waffen-SS. In October 1944 Martinsen was relieved from his position and then arrested and imprisoned in Gestapo's prison in Berlin. Later he was transferred to the Sicherheitsdienst (SD) where he escaped and returned to Denmark.