Portugal and Andorra are the two countries on the Iberian Peninsula that share a border with Spain.
Spain and Portugal
The two countries that border Andorra are Spain and France.
Spain and Morocco
Spain and Portugal
Spain and Poland
Spain and Portual are the two main countries on the Iberian Peninsula.
Portugal and France.
Portugal and Spain
Portugal and Spain
France & Spain
There is no such thing as "the capital of Spain and Italy"; they are two separate countries.