The measure, which takes effect on Tuesday, March 30th, comes as Spain ramps up restrictions in the hope it can avoid a surge in cases over Holy Week, which begins this weekend.
It is the first time such a requirement has been imposed on those crossing the land border between the two countries; until now, it has only been required of arrivals by air.
“They must have a PCR test (RT-PCR), a TMA test or another type of diagnostic test for SARS-CoV-2 based on equivalent molecular techniques, with a negative result, carried out in the 72 hours prior to arrival,” the bulletin said.
Only those working in transportation and cross-border workers will be exempt, along with those who live in the border zone as long as they remain within a 30-kilometre (18-mile) radius of their home.
Until mid-March, the number of infections had been steadily falling in Spain but has started to climb again, with government figures showing 7,586 new cases in 24 hours on Friday, raising the overall number to 3,255,324 and more than 75,000 deaths.
(article continues below)
See also on The Local:
In France, however, daily cases have nearly doubled since the start of the month, reaching over 45,000 on Thursday, raising the overall number around 4,466,000 with more than 93,000 deaths.
With its bars and restaurants open and 11 pm curfew, Madrid has become a sought-after destination for leisure-starved Europeans, particularly those from France.
But the reality has angered Spaniards, who have been subjected to tight internal travel restrictions for months preventing them from leaving their own regions.
The ban has caused a particular upset over Holy Week, when people routinely travel to see family.