The battle was the result of an Allied plan to capture the city of Ancona in Italy in order to gain possession of a seaport closer to the fighting so that they could shorten their lines of communication.
[1] On 16 June, Polish II Corps under Lieutenant-General Władysław Anders—which had been taken into British Eighth Army, commanded by Lieutenant-General Sir Oliver Leese, reserve after its efforts in the Battle of Monte Cassino—was brought forward once more to relieve British V Corps and tasked with the capture of Ancona.
[1] Next, the Italian Co-belligerent Army's IX Assault Unit secured Casenuove, and neighbouring British and Canadian troops took Montecchio and Croce di San Vincenzo.
[1] The Germans were falling back towards the sea, and Polish troops encountered little resistance entering Ancona at 14:30 on 18 July.
[1] Afterward, the Corps took part in the breaking of the Gothic Line and the Allied spring 1945 offensive which resulted in the surrender of the Axis forces in Italy.