on 15 january 2010 a.s. bari signed the argentine striker from acf fiorentina in temporary deal for €300,000. at the end of season he was signed by bari in definitive deal for €500,000, in 2-year contract. after the end of his contract, castillo announced his retirement from playing in order to start a coaching career; however, he reverted his decision later on april 2013 to accept a short-term contract till the end of season with lega pro prima divisione club trapani, who were searching for an emergency striker to strengthen their promotion hopes. castillo provided only three appearances games with no goals, with trapani winning the league title nonetheless.