Former Peruvian President Alan García has died after shooting himself as police arrived at his home to arrest him over bribery allegations.
Mr García was rushed to hospital in the capital, Lima. His death was confirmed by current President Martín Vizcarra.
A crowd of supporters gathered outside the hospital and were held back by a line of police.
Mr García was accused of taking bribes from Brazilian construction company Odebrecht - claims he denied.
Officers had been sent to arrest him in connection with the allegations.
Interior Minister Carlos Morán told reporters that when police arrived, Mr García asked to make a phone call and went into a room and closed the door.
Minutes later, a shot rang out, Mr Morán said. Police forced the door open and found Mr García with a bullet wound. The former president underwent emergency surgery in the Casimiro Ulloa hospital in Lima.
Health Minister Zulema Tomás said Mr García had to be resuscitated three times after suffering cardiac arrests before finally succumbing to his injuries.
Investigators say Mr García took bribes from Odebrecht during his second term in office, linked to a metro line building project in the capital.
Odebrecht has admitted paying almost $US30m in bribes in Peru since 2004.
But Mr García maintained he was the victim of political persecution, writing in a tweet on Tuesday that there was "no clue or evidence" against him.
In November last year he unsuccessfully applied for political asylum in Uruguay.
Alan García - 'Latin America's Kennedy'
- Born on 23 May 1949 in Lima
- Studied law and sociology
- Elected to Peru's Chamber of Deputies for the Aprista Party of Peru (APRA)
- Became Peru's youngest ever president in 1985 at the age of 36
- A gifted orator, he was described by some as "Latin America's Kennedy"
- Served two terms as president, first from 1986-1990, then from 2006-2011
Where to get help:
Need to Talk? Free call or text 1737 any time to speak to a trained counsellor, for any reason.
Lifeline: 0800 543 354 or text HELP to 4357
Suicide Crisis Helpline: 0508 828 865 / 0508 TAUTOKO (24/7). This is a service for people who may be thinking about suicide, or those who are concerned about family or friends.
Depression Helpline: 0800 111 757 (24/7) or text 4202
Samaritans: 0800 726 666 (24/7)
Youthline: 0800 376 633 (24/7) or free text 234 (8am-12am), or email email@example.com
What's Up: online chat (3pm-10pm) or 0800 WHATSUP / 0800 9428 787 helpline (12pm-10pm weekdays, 3pm-11pm weekends)
Kidsline (ages 5-18): 0800 543 754 (24/7)
Rural Support Trust Helpline: 0800 787 254
Healthline: 0800 611 116
Rainbow Youth: (09) 376 4155
If it is an emergency and you feel like you or someone else is at risk, call 111.