During the scoring of "The Last Samurai" in early 2003, Zimmer was approached by the producer Jerry Bruckheimer, with whom he had worked previously on "Crimson Tide", "Days of Thunder", "The Rock," and "Pearl Harbor". Bruckheimer had finished shooting ' but was unhappy with the music composed for the film by Alan Silvestri and wanted a replacement score. Bruckheimer wanted Zimmer to rescore the film, but due to his commitments on "The Last Samurai", the task of composing and supervising music for "Pirates of the Caribbean: The Curse of the Black Pearl" was given to Klaus Badelt, one of Zimmer's colleagues at Media Ventures. Zimmer provided some themes that were used in the film, although he is not credited on screen. Zimmer was hired as the composer for the three subsequent films in the series, ' (2006), ' (2007), and ' (2011), collaborating with Rodrigo y Gabriela for the last.