This study is an original use of a public database to examine the relationship between gallstones and dietary magnesium intake and to explore the potential moderating role of AIP. The gene discussed is AIP; the disease is gallstones.