The move comes as the spread of the more contagious delta variant of the coronavirus has raised fears of new epidemics across Europe.
The German Foreign Ministry had previously considered only a few regions of Spain as risk areas.
But from Sunday, travelers who spend time anywhere in Spain in the 10 days before entering Germany will have to show a negative coronavirus test or prove their vaccination or recovery.
What is the COVID situation in Spain?
In just one week, rates of coronavirus infection in Spain have more than doubled. The flare is attributed to the delta variant which spreads among unvaccinated young adults.
Spain’s Tourism Minister Reyes Maroto said earlier on Friday the country was safe for tourists, citing its vaccination schedule and relatively low number of hospitalized COVID patients.
A day earlier, France advised against Spain and Portugal as summer vacation destinations over fears of the delta variant spreading.
fb/sms (Reuters, dpa)