The formation of gallbladder stones is associated with dysfunctional contraction and duodenal papilla diseases. However, endoscopic sphincterotomy can improve the contraction of the gallbladder and resolve duodenal papilla disease. The aim of the study was to assess the feasibility and effectiveness of endoscopic sphincterotomy in the treatment of muddy stones or sludge in the gallbladder during papillary disease. The clinical data of 53 patients with gallbladder muddy stones or sludge undergoing endoscopic sphincterotomy were retrospectively analyzed. A total of 53 patients received successful endoscopic sphincterotomy with no serious complications. Sphincterotomy did not significantly lower resting gallbladder volume from 63.2±10.8 to 50.1±5.9 mL (P>0.05), but significantly increased gallbladder ejection fraction from 0.41±0.13 to 0.63±0.16 (P<0.01), as measured by the lipoid food test. The static liver and gallbladder imaging examination also showed an increase in gallbladder ejection fraction from 0.45±0.08 to 0.68±0.11 (P<0.01). In addition, the choledochus pressure reduced from 21.9±4.0 to 15.6±2.5 mm Hg, and the gallbladder muddy stones or sludge disappeared after endoscopic sphincterotomy. At the end of the follow-up period, there was no relapse of sludge or muddy stones in the gallbladder. The formation of gallbladder muddy stones or sludge is associated with papilla disease. Endoscopic sphincterotomy can resolve papilla disease, decrease gallbladder bile stasis, improve gallbladder evacuation, and prevent the formation of gallbladder stones.