A statement said that Republican senator, who has been fighting brain cancer since a diagnosis past year, is hospitalized in a "stable condition", The Washington Post reports.
"My husband @SenJohnMcCain is doing well after his surgery", McCain's wife Cindy said in Twitter post, adding that he was looking forward to getting back home.
Diverticulitis is an inflammation or infection of the diverticula, which are small pouches that can form in the lining of the intestines.
US Senator John McCain is in a stable condition.
McCain, 81, was diagnosed previous year with an aggressive type of cancer, glioblastoma, after a brain tumor was discovered by doctors.
Rose Acre Farms recalls eggs due to possible health risks
For kids , the elderly, and anyone with weak immune systems, salmonella can lead to serious infections that may even become fatal. The possibly tainted eggs were distributed from the farm between January 11 and April 12.
McCain returned to Congress and maintained a relatively regular congressional schedule through the fall as he underwent chemotherapy and radiation treatments.
The longtime Republican senator has been undergoing physical therapy related to brain cancer treatment at his family home near Sedona, Arizona, since December. McCain suffered an intestinal infection that required surgery, according to his congressional office. Senate colleagues that have spoken to him report that his mind is still sharp, but his office has given no indication on when he will be able to return to the Senate.
McCain has had frequent visits from family, friends and Senate colleagues. However, if McCain resigns after May, then the appointed senator would serve through the 2020 elections.