Complex sentence: In December 1197, Andrew's troops defeated King Emeric's armies in a battle near to Mački "(Macsek)" in December 1197 and following the battle, the king was obliged to transfer the government of the duchies of Croatia and Dalmatia to Andrew.
Split into simpler sentences: In December 1197, Andrew's troops defeated King Emeric's armies in a battle near to Macsekin December 1197. Following Andrew's victory, the king was obliged to transfer the government of the Duchies of Croatia and Dalmatia to Andrew.