By the winter of 1811, the armies of Napoleon had overrun most of Spain, and Joseph Bonaparte sat on the throne in Madrid.