This paper discusses the problem of anti-jamming communication for combating the moving aerial malicious jamming, where an aerial reconfigurable intelligent surface (ARIS) is considered to assist the ground communications and suppress the malicious jamming. To avoid the destructive attacks, the ARIS flies with a adjusted trajectory. The hierarchical optimization algorithm, which contains two layers, is proposed to optimize the flight trajectory and reflection matrix of ARIS jointly. The first layer utilizes the modified genetic algorithm (MGA) to optimize the flight trajectory of ARIS, and the second layer takes advantage of the manifold optimization method to derive the optimal reflection matrix of ARIS, where the second layer is embedded in the first layer. Simulation results validate that the proposed algorithm can suppress the moving malicious jamming and improve the quality of the legitimate communications effectively.