McLaws oversaw construction nearby of the Williamsburg Line, 4 miles of defensive works across the Virginia Peninsula which played a crucial role in the Battle of Williamsburg of the Peninsula Campaign of 1862.