The ancient Chinese military used rockets

The correct answer is "to defeat an invading army."

working