In 1697 , Spain ceded to the French the western third of the island , which later became Haiti .