Flinders was captured by the French, on the island of Mauritius, in 1803. He was kept prisoner until 1810 on the grounds that he was a spy. He was finally released to return to England, but his health began to fail and he died at the age of 40, on 19 July 1814.