British members of parliament have voted to legalize assisted dying , approving a contentious proposal that would make the United Kingdom one of a small handful of nations to allow terminally ill people to end their lives. Lawmakers in the House of Commons voted by 330 to 275 to support the bill, after an hours-long debate in the chamber and a years-long campaign by high-profile figures that drew on emotional first-hand testimony. Britain is now set to join a small club of nations to have legalized the process, and one of the largest by population to allow it.

The bill must still clear the House of Lords and parliamentary committees, but Friday’s vote marked the most important hurdle. It allows people with a terminal condition and less than six months to live to take a substance to end their lives, as long as they are capable of making the decision themselves. Two doctors, and then a High Court judge, would need to sign off on the choice.

Canada, New Zealand, Spain and most of Australia allow assisted dying in some form, as do several US states including Oregon, Washington and California. Debate over the issue sharply divided lawmakers, many of whom have labored to choose a side during an unusually strained week in Westminster. MPs were given a free vote on the issue, meaning they can support either side according to their conscience, with no political ramifications.

In an open letter to MPs ahead of the vote, Esther Rantzen, a BBC TV presenter with advanced lung cancer who.