In a posting on the Venezuelan president's official Twitter account, Hugo Chavez said Monday that he had returned to Venezuela from Cuba, where was treated for cancer.
"We have arrived again in the Venezuelan homeland," it read. "Thank God! Thank you dear people! Here we will continue the treatment."
It added: "Thanks to Fidel, to Raul, to all of Cuba!! Thanks to Venezuela for so much love!!!"
Vice President Nicolas Maduro said Chavez arrived in Caracas at 2:30 a.m.
Venezuelans have seen and heard little of their leader in recent months. Monday's Twitter posts were the first since November 1.
The announcement was preceded by a glimpse of the ailing president on Friday, when the government released a series of photographs that showed a smiling Chavez -- his face bloated -- lying on a blue pillow, flanked by his two daughters.
Since Chavez underwent cancer surgery on December 11, government accounts about his health have been vague.
After previous procedures, Chavez called state television to offer upbeat, if vague, reports on his condition. There have been no such calls in recent weeks.
Venezuelan Information Minister Ernesto Villegas said doctors had inserted a tracheal tube, which had temporarily made it difficult for the president to speak.
"Two months after a complicated post-surgery period, the patient remains conscious, fully intellectually aware, in thorough communication with his governing team and on top of the fundamental duties of his post," Villegas said.