In a tweet, Mr Jaitley thanked his doctors, the nurses and paramedics who took care of him at the All India Institute of Medical Sciences (AIIMS).
Mr Jaitley, 65, was admitted to the hospital on May 12, and the surgery took place two days later. After the surgery, he spent some time in an isolation ward to avoid infection.
During his hospital stay, the senior minister wrote a Facebook post on four years of Prime Minister Narendra Modi's government.
When Mr Jaitley was in hospital, Railways Minister Piyush Goyal was given the additional charge of the finance ministry.
Delighted to be back at Home. My gratitude to the Doctors, Nursing officers and the paramedics who looked after me for over the past three weeks. I wish to thank all well-wishers, colleagues and friends who were very concerned and continued to wish me for my recovery.Arun Jaitley (@arunjaitley) June 4, 2018
In September 2014, Mr Jaitley had bariatrics surgery to treat weight gain because of a long-standing diabetic condition. The surgery was first performed at Max Hospital, but he had to be later shifted to AIIMS because of complications.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections. Election results will be out on May 23.