Answer
The main purpose of the Polish-Lithuanian Union was to create a strong alliance to defend against the Teutonic Knights, who were a major threat to both countries. The union allowed the two nations to combine their military forces and resources, which ultimately led to their victory in the Battle of Grunwald in 1410.