We formulate an age-structured SEIR epidemic model using vaccination and treatment as control measures. Using the method of characteristics and fixed point arguments, we prove the existence of a unique positive solution to our proposed nonlinear model. We use a suitable objective functional and prove the existence of optimal control variables. Depending on the nature of the problem, the necessary conditions for the optimal control problem are established using the maximum principle of Pontryagin's type. Tools of control theory are used for obtaining optimal control characterizations in terms of state and adjoint variables. To illustrate theoretical results, parameter values are chosen to simulate both with and without control problems. Numerical findings reveal that when, where, and to whom control measures should be implemented for best results of a control program.