El Salvador’s President Nayib Bukele has said his country is to blame for the death of a father and daughter who drowned while trying to reach the US.
Mr Bukele told the BBC his government had to fix the issues that forced people to migrate in the first place.
Mr Bukele, who took office a month ago, promised he would work to make El Salvador a safer and better place.
The bodies of Óscar Martínez and his daughter, who drowned in late June, have been returned home for burial.
A photograph of them lying face down in the water of the Rio Grande shocked the world and reignited the debate about illegal immigration and US President Donald Trump’s hardline policies.
President Bukele said the father and daughter had been fleeing El Salvador, not the United States.
“People don’t flee their homes because they want to, people flee their homes because they feel they have to,” he told the BBC in the capital, San Salvador.
“Why? Because they don’t have a job, because they are being threatened by gangs, because they don’t have basic things like water, education, health.
“We can blame any other country but what about our blame? What country did they flee? Did they flee the United States? They fled El Salvador, they fled our country. It is our fault.”
He went on to say that he did condemn the treatment of migrants in the US and in Mexico, but reiterated that El Salvador had to “focus on making our country better, making our country a place where nobody has to migrate.”
“I think migration is a right, but it should be an option, not an obligation. And right now it’s an obligation for a lot of people.”
Many of the migrants trying to enter the US say they are fleeing violence and poverty in El Salvador, Honduras and Guatemala, and plan to seek asylum in the US.
Critics of Mr Trump’s tougher stance on immigration say his approach is driving migrants to take more dangerous routes.
At least 283 migrants died on the US-Mexico border in 2018, according to US Border Patrol, but human rights activists say the number is likely to be higher.