The connecting record
statedThe Silmarillion
Ecthelion killed Gothmog in The Silmarillion.
In the square of the King, where each slew the other.
What each of them is ranked on
The killer · Ecthelion · rank 15
of the Fountain
In the sack of Gondolin he killed Gothmog, Lord of Balrogs, in the King's square, and died of the same fight. Gothmog had already killed King Fingon and mortally wounded Fëanor. The Silmarillion mentions this kill twice, once in passing when Fëanor falls and once in the account of Gondolin's last night, and both times it is a summary. The full telling is in The Fall of Gondolin, which is not cited here. The rank is contested for that reason: one sentence carries all of it.
statedThe Silmarillion · Quenta Silmarillion ch. 23 “Of Tuor and the Fall of Gondolin”
Fights Gothmog Lord of Balrogs in the very square of the King, where each slays the other.
statedThe Silmarillion · Quenta Silmarillion ch. 13 “Of the Return of the Noldor”
Named as the one who after slew Gothmog in Gondolin.
The victim · Gothmog · rank 5
Lord of Balrogs
Struck down Fëanor, the mightiest of the Noldor Elves, on the borders of Morgoth's land. That was after Fëanor, with few friends about him, had fought the Balrogs until he was burned and badly hurt. Centuries later, at the Battle of Unnumbered Tears, Gothmog split the Elf armies. He fought King Fingon until another Balrog bound the king with a thong of fire, then split his helm with a black axe. His troll-guard was the one Húrin cut down until his axe withered. A High King of the Noldor and the greatest of their craftsmen both fell to him. He died when Gondolin fell, at the hands of a lord of that city who died with him.
shownThe Silmarillion · Quenta Silmarillion ch. 13 “Of the Return of the Noldor”
Fëanor, surrounded and wrapped in fire, is at last smitten to the ground by Gothmog, Lord of Balrogs.
shownThe Silmarillion · Quenta Silmarillion ch. 20 “Of the Fifth Battle: Nirnaeth Arnoediad”
Drives a dark wedge between the Elvenhosts and turns on Fingon; when another Balrog casts a thong of fire about the king, Gothmog hews him with his black axe.
shownThe Silmarillion · Quenta Silmarillion ch. 20 “Of the Fifth Battle: Nirnaeth Arnoediad”
Binds the captured Húrin and drags him to Angband.
All 4 citations
statedThe Silmarillion · Quenta Silmarillion ch. 23 “Of Tuor and the Fall of Gondolin”
Ecthelion of the Fountain fights him in the square of the King, and each slays the other.
What this does not settle
One death in one work. It is the only place the record puts these two in the same room, and it is evidence about that meeting and nothing wider — not a general matchup, not a rematch, and not a ranking of its own.
The ranking is argued from everything either of them has been shown doing; this page is argued from one citation.
Where the two disagree, the disagreement is the point, and it stays visible rather than being resolved by whichever of them happens to be on this page.