The French Revolution, beginning in 1789, marked a significant period of upheaval that influenced many European nations, including Spain. Amidst this turmoil, Spain and France formed an alliance through the Treaty of San Idelfonso, demonstrating their shared interests.