We identified both rare and common variants within the MUC5B gene that were associated with T2D in this study conducted among Han Chinese. Here, MUC5B is linked to type 2 diabetes mellitus.