Original: Mérida is the capital of the autonomous community of Extremadura, Spain.
Simplified: Mérida is the capital of Extremadura, an autonomous community in the Badajoz province, Spain.