Many had to leave their birthplaces, fleeing to Lesvos, Chios, and Samos, the Greek-ruled islands just offshore.
( Many ( ( had ( to ( ( leave ( ( ( ( ( their birthplaces ) , ) ( fleeing ( to ( Lesvos ( , ( Chios ( , ( and Samos ) ) ) ) ) ) ) ) , ) ( ( the ( Greek-ruled islands ) ) just ) ) ) offshore ) ) ) . ) )
(ROOT (S (NP (DT Many)) (VP (VBD had) (S (VP (TO to) (VP (VB leave) (NP (NP (PRP$ their) (NNS birthplaces)) (, ,) (ADJP (JJ fleeing) (PP (TO to) (NP (NNP Lesvos) (, ,) (NNP Chios) (, ,) (CC and) (NNP Samos)))) (, ,) (ADVP (NP (DT the) (JJ Greek-ruled) (NNS islands)) (RB just))) (ADVP (RB offshore)))))) (. .)))
Many people had to leave their homes. 
( ( Many people ) ( ( had ( to ( leave ( their homes ) ) ) ) . ) )
(ROOT (S (NP (JJ Many) (NNS people)) (VP (VBD had) (S (VP (TO to) (VP (VB leave) (NP (PRP$ their) (NNS homes)))))) (. .)))