Andorra, France, Gibraltar, Morocco, and Portugal.
Morocco
Portugal does not have a neighbor, on land, south of the country. Morocco is south of Portugal but separated by the Strait of Gibraltar. Portugal does have a neighbour, what about Spain
Spain.
France, Portugal, Andorra, United Kingdom and Morocco
Spain.
Spain
none but there are macaques in portugal and in morocco.
Morocco has the Atlas Mountains, Spain and Portugal to the north, Western Sahara to the southwest, Mauritania to the south, and Algeria to the east.
Spain is the only country which Portugal borders. In addition to Portugal, Spain also borders France, Andorra, the United Kingdom and Morocco.
Portugal, Andorra, Morocco, and United Kingdom (Gibraltar) also have borders with Spain. Spain has two Autonomous Cities, Ceuta and Melilla, in North Africa surrounded by Morocco.
Technically all or most of them, but probably the answer you seek is Spain and/or Portugal. Spain is north of Morocco, across the Mediterranean Sea.