How was Israel Established?

Israel was established a couple of years after world war two in somewhat controversial fashion. They were established against palestinian wishes in palestine to give Jews a homeland.