Original: In the nineteenth century the city became the General Headquarters for the French Army during the War of Independence ( Peninsular War ) under the reign of Jose Bonaparte ( 1801-1812 ) .
Simplified: In the nineteenth century , the city became the General Headquarters for the French Army during the Spanish War of Independence under the reign of Jose Bonaparte ( 1801-1812 ) .