The shear strength of compacted bentonite is crucial for preventing tilting and damage of the waste canisters in deep geological repositories (DGRs). The shear strength evolution along the confined wetting path also needs to be investigated, given the long saturation time of the bentonite buffer. This study conducted direct shear tests on densely compacted Gaomiaozi bentonite after suction control under confined conditions to determine its peak shear strength and strength parameters. Furthermore, the shear strength evolution along the confined wetting path was modeled on the basis of the effective stress principle. The results show that, for a given dry density, the peak shear strength at a given vertical pressure and the strength parameters exhibit an overall decrease along the confined wetting path. Moreover, the peak shear strength of the specimen that underwent confined wetting was considerably lower than that of the as-compacted specimen with the same total suction, indicating that the suction value and microstructure codetermine the peak shear strength of compacted Gaomiaozi bentonite. For this reason, the peak shear strength in the as-compacted state and the dual-porosity water retention curves established along the confined wetting path were used to model the shear strength evolution along the confined wetting path. The substitution equation for the effective stress parameter chi was selected on the basis of the experimental evidence. Finally, the model parameters were calibrated from the shear strength evolution at a given vertical pressure, and they reasonably reproduced the shear strength evolution under other vertical pressures. These findings can be helpful for the design and safe operation of DGRs under extreme geological conditions.