The ex-England international, who scored 32 goals in 74 appearances during his four-year stay in Glasgow, helped Rangers wrestle back the Scottish Premiership title last season.
The 39-year-old joined English League One outfit Sunderland for a second spell in January but has now decided to hang up the boots.
Posting an emotional message on his official Twitter page, Defoe thanked all of his former team-mates, coaches, fans and family members for their support throughout his career.
He wrote: “After 22 years in the game, I have decided to retire from professional football.
“It’s been a really tough decision, and one I have discussed with my family and those closest to me.
“I made my professional debut at 17 years old in 1999, and I feel now is the right time to bow out. I have had an incredible journey, and have met some amazing people in the game.
“Football will always remain in my blood, and it gives me great pride and satisfaction to look back on the blessed career that I’ve had.
“I now look forward to spending some quality time with my friends and family before moving forward on this next chapter in my career.
“Thank you to all the fans from each club I’ve played for. The love I have received and endured throughout my career will never be forgotten and I will always have a special bond with you all.
“Thank you also to my amazing team mates, coaches and staff for playing such an integral part in my career.
“Lastly I want to say thankyou to my mum. You gave me a ball at two years old and you made me believe my dream could happen. All that I am is because of you and I owe everything to you and God.”
Prior to joining Rangers in January 2019, initially on loan, Defoe starred for West Ham, Tottenham Hotspur, Portsmouth, Toronto and AFC Bournemouth.
He earned 57 international caps, netting 20 goals to round off a glittering career.
GlasgowWorld takes a detailed look at Defoe’s highlights during his time at Rangers:

5. GROUP STAGE - EUROPA LEAGUE QUALIFCATION
Defoe congratulates his team mates after helping Rangers qualify for the Europa League group stage by beating Galatasaray 2-1 during the 2020/21 season Photo: Ian MacNicol - Getty Images

6. 300TH CAREER GOAL VS LIVINGSTON
Defoe wheels away after netting Rangers second goal and his 300th career goal during a 2-0 Premiership win over Livingston at Ibrox Photo: Ian MacNicol - Getty Images

7. 800TH CAREER START Vs FALKIRK
Defoe made his 800th career appearance during a Betfred Cup tie against Falkirk in November 2020, scoring the opening goal in a 4-0 rout Photo: Ian MacNicol - Getty Images

8. SCOTTISH CUP PERFORMANCE VS COVE RANGERS
Manager Steven Gerrard acknowledges Defoe after finding the net during a terrific display in a 4-0 thrashing of Cove Rangers in the Scottish Cup Photo: Alan Harvey - SNS Group

