On 13 September 2017, Marcelo signed a new contract which keeps him at the club until summer 2022. During the 2017–18 UEFA Champions League, he made eleven appearances, while scoring three goals, when Madrid won their third consecutive and 13th overall Champions League title by winning 3–1 against Liverpool in the final.