What is the name of the egg custard from Mexico and Spain?

Flan is a sort of egg custard from Spain. It has a deep gold caramel top that cascades the sides of the pale and creamy custard, with a caramel sauce.