Gerard (c. 1030 – 14 April 1070), also known as Gerard the Wonderful, was a Lotharingian nobleman. He was the count of Metz and Châtenois from 1047 to 1048, when his brother Duke Adalbert resigned them to him upon his becoming the Duke of Upper Lorraine. On Adalbert's death the next year, Gerard became duke, a position that he held until his death. In contemporary documents, he is called Gerard of Alsace (after the fact that he had some land in Alsace), Gerard of Chatenoy (after an ancestral castle near Neufchâteau), or Gerard of Flanders (after his wife's homeland).
He was the second son of Gerhard IV of Metz, count of Metz, and Gisela who was possibly a daughter of Theodoric I, Duke of Upper Lorraine. Henry III, Holy Roman Emperor, invested Adalbert with Lorraine in 1047 after confiscating it from Godfrey III. Godfrey did not back down, however, and killed Adalbert in battle. Henry subsequently bestowed it on Gerard, but the deposed duke continued to stir. Godfrey had the support of a faction of the nobles who did not want a strong hand at the ducal helm and Gerard was imprisoned. Gerard, however, had the support of the chiefest of his bishops, that of Toul, Bruno of Eguisheim-Dagsburg (later the sainted Pope Leo IX), who procured his liberation in 1049. The emperor gave him troops to assist him in his fight, for the rebels had the support of some elements in the church. Gerard himself remained, as his brother had, faithful to the end to the imperial dynasty and his descendants would remain so as well even into the Hohenstaufen years.