 After the Almohad rule, Mérida, that had acknowledged Ibn Hud against the former, was seized by Alfonso IX of León in 1230.It is, together with Badajoz, ecclesiastically the metropolitan seat of the Archdiocese of Mérida-Badajoz.It became the capital of the autonomous community of Extremadura in 1983.