In First Age 510, the forces of Melkor attacked Gondolin, with the help of Maeglin's treachery. Glorfindel and the last of his followers held the Great Market from the Orcs, in pursuance of ambushing the enemies. However, they themselves were ambushed and fought until a fire-drake arrived.
Here is he by the way (the dragon):
Glorfindel and his people cut their way out, but were pursed by the Orcs. The House of the Golden Flower was one of the last Houses to fight, while others were slain. When King Turgon was also slain, the Gondolindrim escaped through Idril's secret way, with Glorfindel holding the rear manfully and lost more of his followers there.