Abstract Establishing a robust and intimate mucosal interface that allows medical devices to remain within lumen-confined organs for extended periods has valuable applications, particularly for gastrointestinal (GI) theranostics. Here, we report the development of e-GLUE , an e lectroadhesive hydro g e l interface for robust and prolonged m u cosal r e tention following electrical activation. Notably, this novel mucosal adhesion mechanism can increase the adhesion energy of hydrogels on the mucosa by up to 30-fold and enable in vivo GI retention of e-GLUE devices for up to 30 days. Strong mucosal adhesion occurs within one minute of electrical activation, despite the presence of luminal fluid, mucus exposure, and organ motility, thereby ensuring compatibility with complex in vivo environments. In swine studies, we demonstrate the utility of e-GLUE for mucosal hemostasis, sustained local delivery of therapeutics, and intimate biosensing in the GI tract. This system can enable improved treatments for various health conditions, including gastrointestinal bleeding, inflammatory bowel disease, and diagnostic applications in the GI tract and beyond.