Rabat - Real Madrid defender Sergio Ramos has agreed to sign a new contract with the Santiago Bernabeu side until June 2020, ending in the process all speculation about his future.