The elves of Gondolin left the place only once, to fight at the Nirnaeth Arnoediad. After their defeat, they retreated, covered by Hurin and his army, and returned to Gondolin.
Hurin and Huor found their way to Gondolin but were allowed to leave. An elf-woman related to Turgon also left, and as a result the dark-elf Eol and his son Maeglin found their way to Gondolin. Eol was slain after he killed the elf-woman because Turgon wouldn't let him leave. Maeglin stayed but was driven to distraction because he fancied Idril but they were cousins or something, and then she married Tuor son of Huor when he found his way to Gondolin, and he was a human not an elf.
Finally betrayed by Hurin who, in a state of madness after being freed from Angband, cried out at the gates, and Maeglin, who, on a secret trip out of the mountains, was captured and threatened/bribed into helping Morgoth's forces enter. The city was sacked and burned, the elves slaughtered and only a few escaped.
Gondolin lasted longer than any other elf kingdom.
The name means "song of stone" in Sindarin Elven.