Andalusia was a shortlived state on the Iberian peninsula.
Originally, it was carved out from Spain after the third French Republican War. The new republic covered the whole south of Spain between Portugal and Valencia, cutting off Castille from the sea.
After anti-French uprisings in Andalusia in 1801, Britain and Morocco attempted a landing in Spain, which the French still defeated.
Over the years and decades, the Andalusians saw the French influence gradually become weaker. Then, the French-Roman Wars started. After the first French-Roman War 1860/61, France had to let Andalusia (and Portugal) leave its sphere of influence. The Andalusians soon accepted the charismatic Ludovico as emperor. In 1863, one Monteleón prince of the royal Spanish family (which was imprisoned after the New Roman conquest of Morocco) accepted emperor Ludovico's offer to become new king Héctor of Andalusia.