Aberdeen went down 2-0 to Real Sociedad in the first leg of their Europa League third-round qualifier in San Sebastian on Thursday.
The Dons kept the impressive Spanish side at bay in the first half but David Zurutuza broke the deadlock from close range early in the second period.
Substitute Sergio Canales scored from outside the box in 68 minutes to seal victory for Sociedad, with the second leg at Pittodrie next Thursday, August 7.
St Johnstone suffered a 2-1 defeat to Spartak Trnava of Slovakia at McDiarmid Park.
Ivan Schranz gave the visitors the lead towards the end of the first half and the same player scored again in 63 minutes.
Defender Dave Mackay pulled one back in stoppage time to give Tommy Wright’s team hope ahead of the return match.