Mauricio Pellegrino took charge of Alaves last summer. Gonzalo Arroyo Moreno/Getty Images

Mauricio Pellegrino has stepped down as coach of Copa del Rey runners-up Alaves.

The former Argentina defender took charge of newly promoted Alaves on a one-year deal last summer, replacing Jose Bordalas, who had led the Basque club to the Segunda Division title.

Pellegrino ensured Alaves had a memorable first season back in La Liga, leading them to a ninth-placed finish -- beating Barcelona, Valencia and Villarreal along the way -- as well as to the Copa del Rey final, where they lost 3-1 to Barca on Saturday.

The 45-year-old said as he confirmed his departure at a news conference on Monday that his aim for this season was to exorcise the ghost of his single campaign at Alaves as a player in 2005-06, which ended in relegation from the top flight.

¡GRACIAS "Flaco" por todo lo que le has dado al alavesismo! ¡Mucha suerte! #GoazenGlorioso pic.twitter.com/aTSX4Wkj2Y - Deportivo Alavés (@Alaves) May 29, 2017

That season was Pellegrino's final one as a player before retiring and led to a 10-year absence from La Liga for Alaves -- which included a four-year stint in the third tier of Spanish football.

Pellegrino said on Monday: "I want to announce that I'm not going to be here next season. We've been talking about it for some time, but we decided it was best to wait to say it until after the final.

"I've been very happy as coach here. When I came I wanted to get off my chest my time here as a player, and hopefully we've done that.

"I want to thank everybody at the club for their help, and especially the players who have helped put Alaves where they deserve to be. It's a team that I'm sure is going to continue achieving their objectives.''

Pellegrino also played for Velez Sarsfield, Barcelona, Valencia and Liverpool, while his coaching career has included stints in charge of Valencia, Estudiantes and Independiente, as well as being Rafa Benitez's assistant at Liverpool and Inter Milan.