The 26-year-old, who has struggled with a thigh injury this season, has put pen to paper on a new three-year deal at Anoeta.
Agirretxe came through Sociedad's youth system and made his first-team debut in 2005. He enjoyed his most prolific campaign to date last season, notching 13 goals in La Liga.
However, partly due to his recovery from injury, Agirretxe has scored just once this season - a late equaliser in a 2-2 draw with Cordoba in the Copa del Rey.
"I have fulfilled my dream. I hope to have more special years here," he told the club's official website.
"The club wanted me to stay here and I feel very important and valued."
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.