A temporal finite element method based on a mised form of the Hamiltonian n-eal; principle is developed for dynamics and optimal control problems. The mixed form of Hamilton's weak principle contains both displacements and momenta as primary variables that are expanded in terms of nodal values and simple polynomial shape functions. Unlike other forms of Hamilton's principle, however, time derivatives of the nionient a and displacements do not appear therein; instead, only the virtual momenta and virtual displaceinents are differentiated with respect to time. Based on the duality that is obser\-cd to esist between the mixed form of Hamilton's weak principle and variational principles governing classical optiinal control problems, a temporal finite element forinulation of the latter can be developed in a rather straightforward manner. Several n-ell-l;nowl problelxs in dynamics and optimal control are illustrated. The esample dynamics problem inr-olws a time-marching problem. As optimal control esaniples, elementary trajectory optimizat ion problems are treated.