The uprising took place on 17 March 1808 in Aranjuez, about 48 kilometers south of Madrid, where the royal family and the government were staying while on their way south, anticipating a French invasion from the north.