The three-time world champion lost his two other brothers, Pete and Sean, in 2015 and 1998 respectively.
Kirra Surfriders Club, where the brothers were members shared the new details about Edward’s death on Facebook.
“As many of you know Ed had been living and working in Madagascar since Covid and loved the place so much he took citizenship over there,” the post said.
“Ed received a cut to his foot which unfortunately got severely infected to the point he had to be rush by boat to the nearest major city an hour away, to be in hospital.
“The hospital did everything they could to help Ed but the infection was to strong and Ed’s heart gave away.”
The club offered their ”biggest condolences” to the family and friends of Ed.
“It’s with a very sad and heavy heart that we say goodbye to one of our great and beloved KSC members Ed Fanning,” the post said.
Mick Fanning took to Instagram earlier this week remembering his brother as someone with the “biggest heart” who first introduced him to his love of surfing.
“Love you my brother,” he wrote in an Instagram post.
“You taught me so much over the years about everything that life could deal up. The good and the bad you were my teacher. You introduced us all to surfing, the joy and freedom of riding a wave.”