Here's a breakdown:
* Latin was spoken in the Roman Empire.
* After the fall of the Roman Empire, Latin evolved into different dialects in various regions.
* Italian evolved from the dialects spoken in the Italian peninsula.
* Spanish evolved from the dialects spoken in the Iberian peninsula (modern-day Spain and Portugal).
While both languages share similarities due to their common ancestor, they developed independently over time.