This paper proposes a design method of optimal tracking control for discrete-time systems with the delayed state and input. By introducing a new state vector, the original system is transformed into a non-delay discrete-time system with virtual disturbance. According to the optimal control theory, a sequence of discrete Riccati matrix equations and Stein matrix difference equations are constructed, and the solution sequence is proved to converge to the optimal tracking strategy of the transformed discrete-t...