The origin of this alternate retelling of Spanish (and a bit of the world) history comes from here.
In 1766 Carlos, heir to the Spanish throne, dies, and his brother Fernando becomes king of Spain (OTL Fernando I of the Two Sicilies. His son Leopoldo Juan would inherit the kingdom of the Two...