Abdelaziz Barrada’s 39th minute goal saw Azulones deliver a blow to the visitors' European aspirations
The fourth-placed visitors had the opportunity to pull five points clear of Valencia in third spot, but the result means the gap remains just two points with four games of the campaign remaining.
Carlos Vela gave Sociedad a dream start when he got on the end of a Zurutuza cross and made it 1-0 with a simple header four minutes in.
However, poor defending proved to be the visitors' undoing from that point on. Pedro Leon capitalised on a horrendous giveaway to level for the home side on 18 minutes and Getafe didnt look back..
With 39 minutes on the clock, Abdelaziz Barrada slotted home a loose ball inside the area - despite the best efforts of defender Inigo Martinez - and that goal proved to be the winner.
The loss was Sociedad’s first in La Liga since a 4-3 defeat at Real Madrid on January 6 - a streak that spanned 16 games.
Getafe move up to eighth place with the win, two points shy of Betis in seventh.