Beginning in 1645, the conquest of Crete by the Ottoman Empire was completed in 1669 with the end of the Siege of Candia. The Ottoman period of the history of the island was interspersed with insurrections. In 1821, Greece revolted against the Ottoman occupation, and Crete takes part in the Greek Revolution. But in 1830, in the end of the war, Crete wasn't a part of the new Greek State. The island passed under the authority of Muhammad Ali of Egypt, for the services to the Ottoman Empire in the Greek Revolution in the Peloponnese. This Egyptian parenthesis lasted no more than ten years, and in 1840, Crete returned to the authority of the Sultan. Despite a new attempt of insurrection of the Cretan people, Crete knew a period of relative peace until 1866.