Sen. John McCain (R-Ariz.) has been discharged from the hospital and has returned to his home near Sedona, Ariz., according to a tweet from his wife, Cindy McCain, on Monday night.

McCain, 81, underwent surgery more than a week ago at the Mayo Clinic in Phoenix for an intestinal infection related to diverticulitis, an inflammation of the digestive tract. His family said he came out of the surgery in stable condition.

“@SenJohnMcCain and I are home in our beloved Hidden Valley enjoying a glorious Arizona sunset,” Cindy McCain said in her Monday night tweet, which included a photo of a picturesque stream.

In July, doctors diagnosed the six-term senator and former Republican presidential nominee with glioblastoma, an aggressive form of brain cancer that also took the lives of Sen. Edward M. Kennedy (D-Mass.) and Beau Biden, son of former vice president Joe Biden.

McCain returned to Congress and maintained a relatively regular congressional schedule through the fall as he underwent chemotherapy and radiation treatments. By December, however, he had returned to Arizona to continue his treatments and go to physical rehabilitation to try to regain his strength.

It is unclear when McCain might return to the Senate.

Paul Kane contributed to this report.