We consider an optimal boundary control problem for adistributed parabolic system with boundary conditions involvingmultiple time‐varying lags. Necessary and sufficient optimalityconditions for the Neumann problem with the quadraticperformance functionals are derived. The results are illustrated with numerical solutions of example tasks.