The Allies hoped their invasion of the Italian mainland would lead to a rapid occupation of Italy, but the Germans put up a defense that slowed their advance to a crawl.