Brazilian President Luiz Inacio Lula da Silva has undergone surgical procedures while former president Jair Bolsonaro returned to house arrest after a two-week hospitalization.

Mr Lula, 81, went to the Sirio-Libanes Hospital in Sao Paulo to remove a cancerous "basal cell lesion on his right arm" and excess skin from his eyelids, the hospital said.

Basal cell lesions are a type of skin cancer that tends to be easily treatable, according to the American Academy of Dermatology.

Both Mr Lula's procedures "were performed without complications" and he will resume duties immediately, the hospital added.

Between May and June, the veteran leftist underwent treatment for skin cancer on his head and has since donned a hat for public appearances.

Lula won re-election in October and will begin his fourth non-consecutive term in January.

Meanwhile, former president Jair Bolsonaro, who is under house arrest, returned to his residence after treatment for an intestinal obstruction and pneumonia.

The far-right former leader, who served a single term from 2019 to 2022, has suffered repeated abdominal complications since being stabbed during the 2018 election campaign.

The 71-year-old was hospitalized on November 20 with intestinal obstruction.

Mr Bolsonaro was also treated for pneumonia that he developed during his stay and now "he feels good, the treatment worked well," his doctor Brasil Caiado told reporters.

Mr Bolsonaro is serving a 27-year sentence for attempting to cling to power after losing his 2022 re-election bid to Mr Lula.