The bill, however, does not legalise mercy killing or assisted suicide, senators said.

The move was supported by the ruling conservative National Action Party, but is likely to face strong opposition from church leaders.

Mexico is the world's second-largest Roman Catholic nation and the church has opposed similar right-to-die legislation.

Mexico City, the Mexican capital, has become a vanguard of liberalism in Latin America by backing gay civil unions and abortion.