Pucca“El levantamiento de Madrid dio comienzo a la guerra de la independencia..”
I would translate this as
The war for independence began with the Madrid uprising. (You can substitute of for for. You can substitute started for began. You can substitute insurrection for uprising.)
or
The uprising in Madrid set off the war of independence.
The Madrid uprising set the war of independence into motion.
I'm
sure there are other possibilities, and both the style and other text
before and after this sentence might also affect your choices, but
that's the basic idea.
CJ