* Dying refers to the process of ceasing to live. For example: "The patient was dying of cancer."
* Dyeing refers to the act of coloring something with a dye. For example: "She was dyeing her hair blonde."
So, make sure to choose the spelling that fits the meaning you want to convey.