Let M be a compact n-dimensional Riemannian manifold with nonnegative Ricci curvature and mean convex boundary ∂M. Assume that the mean curvature H of the boundary ∂M satisfies H≥(n−1)k>0 for some positive constant k. In this paper, we prove that the distance function d to the boundary ∂M is bounded from above by 1/𝑘 and the upper bound is achieved if and only if M is isometric to an n-dimensional Euclidean ball of radius 1/𝑘.