Mexican ex-presidential candidate Andres Manuel Lopez Obrador left a hospital on the south side of Mexico City on Saturday after suffering a heart attack last Tuesday, an official close to the leftist leader told Efe.

Lopez Obrador, who unsuccessfully ran for president in the 2006 and 2012 elections, emerged at around 11:00 a.m. local time (1700 GMT) from the Medica Sur Tlalpan Hospital accompanied by his wife and children, the source said.

The official added that over the coming weeks the politician’s team will fully respect the doctors’ recommendations.

Previously, a bulletin signed by the hospital’s medical director, Dr. Octavio Gonzalez Chon, said that Lopez Obrador would be released from medical care on Saturday “after suffering a severe myocardial infarction, which was treated with angioplasty and a coronary stent implant.”

“Over the past five days his development has been satisfactory and presented no complications, so that he is now leaving hospital to complete his recovery and medical treatment, during which rest and relaxation over the next four weeks are essential,” the doctor’s report said.

Lopez Obrador, known as AMLO, finished second in the 2006 and 2012 presidential elections.

Conservative Felipe Calderon’s margin of victory over Lopez Obrador in 2006 was 0.56 percent, the smallest in Mexican history, and the leftist refused to recognize the result.

AMLO was defeated last year by Enrique Peña Nieto, of the Institutional Revolutionary Party, or PRI.

The current focus of the leftist politician and his National Regeneration Movement, or Morena, is to stop a plan to open the oil sector to private investment, which they see as a step toward privatizing state-owned Petroleos Mexicanos.