Output trajectories of the multiagent systemsThis article studies the fixed-time time-varying formation tracking control problem for heterogeneous multiagent systems with a nonautonomous leader under a directed communication network. The primary objective is to design a time-varying formation tracking protocol enabling the followers to form the desired time-varying formation while simultaneously tracking the output of the nonautonomous leader in a fixed time. First, a distributed fixed-time observer is proposed to estimate the state of the nonautonomous leader under a directed communication network. Then, utilizing coordinate transformation and sliding mode techniques, a fixed-time observer-based time-varying formation tracking protocol is developed without requiring the full row rank assumption on the input matrix of the follower. It is proved via the Lyapunov stability theory that the fixed-time time-varying formation tracking problem with a nonautonomous leader can be solved under the proposed protocol. Finally, the effectiveness of the proposed fixed-time time-varying formation tracking control protocol is demonstrated by numerical examples.