Euthanasia and assisted suicide
Euthanasia is the act of deliberately ending a person's life to relieve suffering. Assisted suicide is deliberately assisting or encouraging a person to kill themselves.
There are arguments both for and against euthanasia and assisted suicide, including religious and ethical arguments. These are outlined here.
If you are approaching the end of life, you have a right to good palliative care to control pain and other symptoms, as well as psychological, social and spiritual support.