On 9 September, Messi scored his first hat-trick of the 2017–18 league campaign, against Espanyol in "Derbi barceloní", thus helping to secure a 5–0 home victory for "Blaugrana" over local rivals. Messi netted twice against Gianluigi Buffon, on 12 September, as Barça defeated the last season's Italian champions Juventus 3–0 at home in the UEFA Champions League. On 19 September, Messi found the net four times in a 6–1 trashing of Eibar at the Camp Nou in La Liga. Three weeks later, on 1 October, Messi surpassed his former teammate Carles Puyol to become the third highest appearance maker in the club's history, as he helped Barça defeat Las Palmas 3–0 by assisting Sergio Busquets' opener and later adding two himself in his 594th official game for the club; the league game was played behind closed doors at the Camp Nou due to violence in Catalonia relating to an ongoing independence referendum.