The paper proves a unified analysis for finite-time anti-synchronization of a class of integer-order and fractional-order chaotic systems. We establish an effective controller to ensure that the chaotic system with unknown parameters achieves anti-synchronization in finite time under our controller. Then, we apply our results to the integer-order and fractional-order Lorenz system, respectively. Finally, numerical simulations are presented to show the feasibility of the proposed control scheme. At the same time, through the numerical simulation results, it is show that for the Lorenz chaotic system, when the order is greater, the more quickly is anti-synchronization achieved.