A new approach for controlling microstructure development during hot working processes is proposed. This approach is based on optimal control theory and involves state-space type models for describing the material behavior and the mechanics of the process. The effect of process control parameters such as strain, strain rate, and temperature on important microstructural features can be systematically formulated and then solved as an optimal control problem. This method has been applied to the optimization of grain size and process parameters such as die geometry and ram velocity during the extrusion of plain carbon steel. Experimental results of this investigation show good agreement with those predicted in the design stage