The language family that includes French and Spanish is the Romance language family, commonly shortened to Romance. Romance languages are the modern descendants of spoken, or Vulgar, Latin and form the surviving branch of the Italic group within the Indo-European family.
As the Roman Empire expanded, Latin spread across much of western and southeastern Europe. After the Western Roman Empire fragmented, local varieties of spoken Latin became increasingly separated. Over centuries, these regional forms developed into French, Spanish, Portuguese, Italian, Romanian, Catalan, Sardinian, and many other Romance languages.
French and Spanish are related, but they are not simply dialects of one language. Spanish developed mainly from Latin varieties in the Iberian Peninsula, while French emerged from Gallo-Romance varieties in what is now northern France and was strongly influenced by the Germanic Franks. Their shared Latin ancestry explains similarities such as Spanish nación and French nation.
“Romance” here refers to Rome and Roman speech, not to romantic love or literature. The family is also called Latin or Neo-Latin. Latin itself belongs to the family’s history, but the modern Romance languages are later descendants of its spoken varieties.