After the French invasion in 1677, during the Franco-Dutch War, the island remained chiefly French until 1960. There were brief periods of British occupation during the various wars fought by France and Britain. In 1960 Senegal was granted independence. The island was notably taken and occupied by the British between 1758 and 1763 following the Capture of Gorée and wider Capture of Senegal during the Seven Years' War before being returned to France at the Treaty of Paris (1763). For a brief time between 1779 and 1783, Gorée was again under British control, until ceded again to France in 1783 at the Treaty of Paris (1783). During that time, the infamous Joseph Wall served as Lieutenant-Governor there, who had one of his men unlawfully flogged to death in 1782.