Complex sentence: The castle's purpose was to defend against attacks from Wales but the town was also attacked and burnt by Roger Mortimer, 1st Earl of March during the Despenser War in 1322.
Split into simpler sentences: The castle's purpose was to defend against attacks from Wales. The town was attacked and burnt by Roger Mortimer, 1st Earl of March during the Despenser War in 1322.