 The attack was a part of the objectives of the Western task force as part of Operation Torch, a large Allied landing to seize control of North Africa from German control.Within the task force, Sub Task Force Goalpost was tasked with the objective of securing Port Lyautey.There were three objectives to the attack