Portuguese is not an official or widely spoken language in Spain.
In Galicia (NW Spain), Galician is closely related to Portuguese (common medieval ancestor: Galician-Portuguese). Mutual intelligibility is high. In Olivenza (disputed border town, administered by Spain, claimed by Portugal), some elderly residents still speak Portuguese dialect.
Otherwise, Portuguese is heard mainly from tourists, cross-border workers, and immigrant communities—not as a community language.