Britain used Egypt as a base for Allied operations throughout the region, especially the battles in North Africa against Italy and Germany. Its highest priorities were control of the Eastern Mediterranean, and especially keeping the Suez Canal open for merchant ships and for military connections with India and Australia. The government of Egypt, and the Egyptian population, played a minor role in the Second World War. When the war began in September 1939, Egypt declared martial law and broke off diplomatic relations with Germany. It did not declare war on Germany, but the Prime Minister associated Egypt with the British war effort. It broke diplomatic relations with Italy in 1940, but never declared war, even when the Italian army invaded Egypt. King Farouk took practically a neutral position, which accorded with elite opinion among the Egyptians. The Egyptian army did no fighting. It was apathetic about the war, with the leading officers looking on the British as occupiers and sometimes holding some private sympathy with the Axis. In June 1940 the King dismissed Prime Minister Aly Maher, who got on poorly with the British. A new coalition Government was formed with the Independent Hassan Pasha Sabri as Prime Minister.