Complex sentence: The war began when French and Spanish armies crossed Spain and invaded Portugal in 1807, and in 1808 France turned on its ally, Spain.
Split into simpler sentences: The war began when French and Spanish armies crossed Spain and invaded Portugal in 1807. Then, in 1808, France turned on its ally, Spain.