All Spanish people have 2 family names.
Pedro is Pedro Rodriguez Ledesma. His father will be <something> Rodriguez <something> and his mother is <something> Ledesma <something> hence his name of given + father's first family name + mother's first family name.