Well, after WW1 when the british took control over Palestine. In 1917, the British government issued the Balfour Declaration, announcing its intention to facilitate the "establishment in Palestine of a national home for the Jewish people." It officially became it's own country the day before the expiration of the British Mandate.