On 16 July 2014, Allegri was appointed as the new head coach of Juventus, replacing Antonio Conte who had resigned the day before. Although the decision to hire Allegri was initially met with ambivalence, on 2 May 2015, he guided Juventus to their fourth consecutive Serie A title, as the club defeated Sampdoria 1–0 at the Stadio Luigi Ferraris in Genoa; this was only the second time Juventus had won four consecutive Scudetto titles (the last time being from 1931 to 1935, when they won five Scudetto titles in a row). Having previously won the title with AC Milan in 2011, it also marked his second Scudetto title as a manager in Serie A. On 13 May 2015, Allegri guided Juventus to the Champions League final by defeating defending champions Real Madrid in the semifinals, 3–2 on aggregate; it had been twelve years since the Bianconeri had last appeared in the final, eventually losing to Milan 3–2 on penalties in 2003. A week later, on 20 May 2015, Allegri guided Juventus to a domestic double by helping the club win their record tenth Coppa Italia, defeating Lazio 2–1 in extra time. The Old Lady last won the trophy in 1995, breaking their twenty-year drought of having not won the competition, and making them the first team in Italy to win the trophy ten times. On 6 June 2015, Juventus were defeated by Barcelona, 3–1, in the 2015 UEFA Champions League final.