Helmfelt returned to Stockholm in 1676 to become Commander-in-chief of the Swedish army during the Scanian War. He was killed the following year at the Battle of Landskrona.