A Chinese bride dying of cancer wedded her long-time boyfriend after receiving a surprise proposal on her hospital bed that same day.

39-yr-old Yang Liu got married to her boyfriend of eight years , 43-yr-old Peng Xin, on March 23 on her hospital bed in the Hubei province where she's receiving treatment.

READ: Bride dying of cancer marries herself to fulfill dream of having a wedding

“I have imagined my wedding on many occasions, I never thought that it would take place in a hospital, but I am just as happy, " Yang said.

The bride was given less than five years to live by doctors at the hospital where she's receiving chemotherapy. She was diagnosed with late-stage breast cancer in February 2016 the timing was too late to have a surgery which could have saved her life.

Peng - an air-conditioner technician, applied for a long leave of absence from work so he can take care of his new bride every day. The couple's parents never gave consent to the relationship, South China Morning Post says.

READ: Bride with terminal cancer and only few days to live marries groom in wedding planned within 24 hours

He chose to surprise her with a proposal after getting permission from doctors who certified her condition stable and married her on the same day with both parents present.

Nurses and doctors had donated items for the ceremony at the hospital as two of the doctors acted as witnesses at the wedding.

Watch video of bride holding wedding photoshoot alone after fiancé dies in car accident: