The parents of Abigail Fleming, 14, said that the singer-songwriter visited Sheffield's Bluebell Wood Children's Hospice after he read a story about her request and received a video message.
The schoolgirl was told that she only had weeks left to live after being diagnosed with cancer, and listed seeing Sheeran perform as one of her most-wanted things to do.
Sheeran travelled to meet Abigail and perform some of his biggest tracks at her bedside.
Mother Maria Fleming told the Worksop Guardian: "He didn't just make her day, it made her life. It was his only day off. He flew in from Paris to London and then caught the train to Sheffield.
"Abigail gave him a card and a keyring to say thank you. He gave her a bracelet which somebody had given him for his 18th birthday, which I now wear.
"He was a complete gentleman and she really loved it."
Sheeran has since announced that he aims to raise money at an auction for the Bluebell Wood charity, as well as becoming an ambassador.
Abigail Fleming passed away on April 3.
Watch the video for Ed Sheeran's 'Small Bump' below: