The invasion of Sicily was the preliminary step in the invasion of the Italian mainland. The Allies hoped to knock Italy out of the war.