Spanish names are the traditional way of identifying, and the official way of registering, a person in Spain. They comprise a given name (simple or composite) and two surnames (the first surname of each parent). Traditionally, the first surname is the father's first surname, and the second is the mother's first surname. Since 1999, the order of the surnames in a family is decided when registering the first child, but the traditional order is nearly universally chosen (99.53% of the time).
The practice is to use one given name and the first surname generally (e.g. "Miguel de Unamuno" for Miguel de Unamuno y Jugo); the complete name is reserved for legal, formal and documentary matters. Both surnames are sometimes systematically used when the first surname is very common (e.g., Federico García Lorca, Pablo Ruiz Picasso or José Luis Rodríguez Zapatero) to get a more distinguishable name. In these cases, it is even common to use only the second surname, as in "Lorca", "Picasso" or "Zapatero". This does not affect alphabetization: "Lorca", the Spanish poet, must be alphabetized in an index under "García Lorca", not "Lorca" or "García".
Currently in Spain, people bear a single or composite given name (nombre in Spanish) and two surnames (apellidos in Spanish).
A composite given name comprises two (or more) single names; for example, Juan Pablo is considered not to be a first and a second forename, but a single composite forename.
The two surnames refer to each of the parental families. Traditionally, a person's first surname is the father's first surname (apellido paterno), while their second surname is the mother's first surname (apellido materno). For example, if a man named Eduardo Fernández Garrido marries a woman named María Dolores Martínez Ruiz (note that women do not change their name with marriage) and they have a child named José, there are several legal options, but their child would most usually be known as José Fernández Martínez.