In August 1944, Ridgway was given the command of XVIII Airborne Corps. Command of the 82nd Airborne Division passed to Brigadier General James M. Gavin, who had served as Ridgway's Assistant Division Commander. The first operation involving Ridgway was Operation Market Garden where his 101st Airborne Division dropped near Eindhoven to secure the Bridges between Eindhoven and Veghel on the road to Arnhem. Ridgway dropped with his troops and was in the forefront of the Divisions part of the fighting. The XVIII Airborne Corps helped stop and push back German troops during the Battle of the Bulge in December. In March 1945, with the British 6th Airborne Division and United States 17th Airborne Division under command, he led the corps into Germany during Operation Varsity, the airborne component of Operation Plunder, and was wounded in the shoulder by German grenade fragments on March 24, 1945. He led the corps in the Western Allied invasion of Germany. In June 1945 he was promoted to lieutenant general. At war's end, Ridgway was on a plane headed for a new assignment in the Pacific theater of war, under General of the Army Douglas MacArthur, with whom he had served while a captain at the United States Military Academy at West Point.