A surgical procedure to correct an incisional hernia in Brazilian President Jair Bolsonaro's abdomen has ended, according to a statement from the presidential palace.

The procedure, performed in São Paulo, lasted approximately five hours and was described as successful.

The president is stable and recovering from the surgery, which began this morning.

Last night the 64-year-old Bolsonaro told the nation he was feeling confident hours before undergoing his fourth abdominal surgery to treat a stab wound.

"I remain confident for the next surgery. May God bless us. Good night," Mr Bolsonaro said on Twitter after participating in festivities to mark Brazil's 197th Independence Day in the capital Brasília.

Today's surgery was necessary to correct an incisional hernia due to a weakening of certain tissues from the three previous surgeries in the president's abdomen following a stab wound on the campaign trail last year.

Jair Bolsonaro was stabbed in September 2018, during a political rally in the city of Juiz de Fora, Minas Gerais state.

Read more:
A history in controversy: Brazil's President Jair Bolsonaro
Brazil's Bolsonaro blames NGOs for Amazon forest fires
Brazil's president says criminalising homophobia could 'hurt' gays

Adélio Bispo de Oliveira, the man accused of attacking Bolsonaro, was acquitted after a judge in Minas Gerais ruled he was mentally ill.

In a decision handed down last June, the court ordered his detention in a mental illness facility for an undetermined period of time.