The Jews lived in Libya and historically got along for centuries with the Libyans. Then all hell broke loose when the Italians (that had a presence in Libya) sided with Germany.
April 3, 1941 the Italians and the Germans unleashed hell on the jews that lived in Libya for taking sides with the British.
In March of 43 the Jews had been put in an interment camp in Benghazi, Libya
Within a year of Israel founding Jews fled or were EXPELLED from their Arab countries and headed for Israel
1951 Libya gained independence which was under the influence of Egypt.