Ramires has been a key player at Chelsea since joining the club from Portuguese giants Benfica.
He said: “I am very happy to sign a new contract with Chelsea. My family and I are very happy here in London.
“In the past five years the club has lifted every major trophy. I hope to be an important part of many more successes in the next four years.”