Badajoz (.mw-parser-output .IPA-label-small{font-size:85%}.mw-parser-output .references .IPA-label-small,.mw-parser-output .infobox .IPA-label-small,.mw-parser-output .navbox .IPA-label-small{font-size:100%}Spanish: [baðaˈxoθ] ⓘ; formerly written Badajos in English) is the capital of the Province of Badajoz in the autonomous community of Extremadura, Spain. It is situated close to the Portuguese border, on the left bank of the river Guadiana. The population in 2011 was 151,565. Badajoz was conquered by the Moors in the 8th century and re-founded as Baṭalyaws, and later in the 11th century the city became the seat of a separate Moorish kingdom, the Taifa of Badajoz. After the Reconquista, the area was disputed between Spain and Portugal for several centuries with alternating control resulting in several wars including the Spanish War of Succession (1705), the Peninsular War (1808–1811), the Storming of Badajoz (1812), and the Spanish Civil War (1936). Spanish history is largely reflected in the town.