Godfrey was in favour with the emperor and defended his interests in Lorraine. In 1102, he stopped Robert II of Flanders "the Crusader", who was invading the Cambraisis. After the death of the emperor in 1106, his son and successor, Henry V, who had been in rebellion, decided to avenge himself on his father's partisans. Duke Henry of Lower Lorraine was imprisoned and his duchy confiscated and given to Godfrey. After Henry escaped from prison, he tried to retake his duchy and captured Aachen, but ultimately failed.