Original: Esztergom was the capital of Hungary from the 10th till the mid-13th century when King Béla IV of Hungary moved the royal seat to Buda.
Simplified: After the attack king Béla IV.