The 27-year-old Argentine becomes Sam Allardyce's first signing of the close-season, with the striker set to bolster the Hammers' frontline in the 2014/15 season
Zarate is manager Sam Allardyce's first signing of the close-season and will move to Upton Park next month, with the club also agreeing a further one-year option for the 27-year-old.
Having begun his career with Velez, Zarate has also enjoyed permanent stays at Al-Sadd and Lazio, as well as loan spells at Birmingham City and Inter.
Zarate scored 20 goals in 35 games for Velez last season and will hope that form can help his second spell in the Premier League become a more fruitful one than his last.
He scored just four times in 14 appearances for Birmingham but Zarate is sure that he can bolster West Ham's forward options.
"This is a new chance for me and I want to play," he told the club's official website.
"I think I played well for Velez this season and that was important for me. I had some good teammates and they helped to make it a fantastic season for me.
"If you ask me what I can bring to the squad then I say I hope I will bring goals. I will also bring dribbling skills and other attacking qualities.
"West Ham is a very important club and we know all about them and the Premier League in Argentina. This club is a beautiful club. I know English football from my time at Birmingham and I hope I will play well and reach the highest possible level."