The paper is committed to studying the domain decomposition method for the incompressible Navier–Stokes equations(NSEs) with stochastic input. The stochastic input is represented spectrally by employing orthogonal polynomial functionals from the Askey scheme as trial basis to represent the random space, and the stochastic NSEs system are transformed into deterministic ones via the polynomial chaos expansion. The corresponding deterministic equations are transformed into the constrained optimization problem by minimizing the cost function on the common interface after the whole domain decomposed into two sub-domains. The constrained optimization problems are transformed into unconstrained problems by the Lagrange multiplier rule. A gradient method-based approach to the solutions of domain decomposition problem is proposed to solve the unconstrained optimality system. Finally, one numerical simulation experiment for square cavity flow problem with the stochastic boundary conditions are performed to demonstrate the feasibility and applicability of the gradient method.