Abstract. We consider a control problem with reflecting boundary and obtain necessary optimality conditions in the form of the maximum Pontryagin principle. To derive these results we transform the constrained problem in an unconstrained one or we use penalization techniques of Morreau-Yosida type to approach the original problem by a sequence of optimal control problems with Lipschitz dynamics. Then nonsmooth analysis theory is used to study the convergence of the penalization in order to obtain optimality conditions. Mathematics Subject Classification. 34K35, 49J24, 49L20, 49L25, 93B18, 93C15.