In the modern age, the French Enlightenment and the ideas of the French Revolution influenced the main thinkers of the Modern Greek Enlightenment, such as Adamantios Korais (who lived in France) and Rigas Feraios, and formed the ideological groundwork for the Greek War of Independence. French troops also occupied the Ionian Islands during the Napoleonic Wars, paving the way for the first independent Greek state of modern times, the Septinsular Republic. During the Greek War of Independence that began in 1821, French Philhellenes played an important role, providing much-needed military expertise and propagating the cause of Greek independence abroad. Among the most important was Charles Nicolas Fabvier, an organizer of the modern Greek regular army. French ships also took part in the crucial Battle of Navarino, which secured Greek independence, and a French expeditionary corps landed in Greece in 1828 to help clear the country of remaining Ottoman garrisons.