Robertson, 32, joined the Reds from Hull City in 2017 and has won two Premier League titles and the Champions League during his time on Merseyside.
In a video announcing his decision, the Scotland captain said: "I think now's the time for me to move on".
The defender added: "The nine years I'll look back on with a big smile on my face."