A pair of conjoined twins who became famous on social media for offering a glimpse into their lives have both died within minutes of each other while preparing for a life-changing surgery.

A post to their shared Instagram account revealed the sad news that the 27-year-old Ecuadorian twins Jose Luis and Jose Armando Cevallos Herrera had suffered sudden cardiac arrests moments apart. They had been preparing for surgery that would have improved their ability to walk.

The two were well known as The Conjoined Twins of Ecuador and had gained more than 60,000 followers by sharing their experiences online. The online statement in Spanish from their team read: "With deep sorrow and sadness, the team of Los Siameses de Ecuador 2 wishes to inform their followers and the entire community that our beloved twins passed away in the early hours of this morning.

The twins became famous on social media

"Their story, their smiles and their outlook on life left an incredible mark on many hearts. We are left with the joy of knowing that they were happy, fulfilling their dreams and achieving goals that filled them with hope."

The post also thanked everyone who "supported them, believed in them and were part of their achievements."

It added: "Thank you for accompanying them in making their dreams come true and for giving them so much love along their journey."

The statement said the twins' family were "refraining from providing further information about what happened" and asked for "respect for their privacy during this difficult time."

-

The post finished: "Their legacy will live on in a phrase that always represented them: 'Where there's a will, there's a way, and disability is no impediment to being happy.'"

The twins were joined at the chest and pelvis, sharing a pair of legs, a liver, and an intestine. Local reports stated the twins died in a hospital in Colombia. They had traveled there in April, undergoing intensive rehabilitation therapy and were preparing for a procedure to help them walk.

But last week Jose Luis fell ill, vomiting and developing urinary tract complications. He then suffered a heart attack on Thursday but was revived.

Hours later both twins suffered heart attacks and passed away. "Jose Armando had already suffered the heart attack and couldn't withstand it, and it took Jose Luis with him," their brother Damian explained.

Since they were born the twins had suffered challenges walking and needed to use a skateboard for mobility.

"We used to drag ourselves along the floor and it was difficult because we had no coordination with our legs," Jose Luis had previously shared. They were committed to learning to walk independently and their therapy in Colombia was an attempt to achieve that goal.

Jose Luis recalled: "There were certain moments when we cried because we wanted to walk normally on both feet."