On 27 February 2018, Moyá was released from his contract with Atlético and joined Real Sociedad on a two-year deal as an emergency signing following the injury of Gerónimo Rulli. Though mainly a backup for Álex Remiro in 2019–20, he played the last few games as the team from San Sebastián qualified for the UEFA Europa League, and was rewarded with a new one-year deal in August.