When did Mexico gain independence?
Mexican War of Independence
{'answer_start': array([-1]), 'answer_text': array([''], dtype=object)}
After some Spanish reconquest attempts, including the expedition of Isidro Barradas in 1829, Spain under the rule of Isabella II recognized the independence of Mexico in 1836.[5]