It was placed there by mountaineers on the orders of a German general during the war for the Caucasus in 1942.
It is said that Adolf Hitler, upon hearing of the flag's placement, flew into a rage. He considered such initiatives futile and irrelevant to the war effort.
The flags were removed in February 1943 by Soviet mountaineers.