Middle High German galgenstric, by surface analysis, Galgen (“gallows”) + Strick (“rope”).
Practice speaking and memorizing "Galgenstrick" and many other words and sentences in German.