Marcelo has officially signed a contract extension with Real Madrid until the end of the 2021-22 season.