The Battle of Cold Harbor was the last battle of Grant's Overland Campaign. William F. "Baldy" Smith's XVIII Corps joined up with Grant's Army of the Potomac at Cold Harbor. The addition of Smith's 16,000 men would extend the Union line. XVIII Corps arrived about 3 o'clock in the afternoon on 3 June 1864. Second Division under the command of Brig. Gen. John H. Martindale, including the 9th New Jersey, was deployed on the right of Smith's force. The 9th arrived on the field late and was not involved in the bloody Union attacks. The 9th did, however, enter the trenches; the result was 1 enlisted man killed, 1 officer wounded, and 34 enlisted men wounded. The next several days saw the 9th engaged but not part of any of the costly frontal attacks. By the 12th Grant began the next set of movements that would bring the army to Petersburg. The 9th covered the XVIII Corps withdraw to White House and then Bermuda Hundred. Upon reaching Bermuda Hundred on 15 June 1864 the nine remaining companies of the 9th plus much reduced 23 Massachusetts were formed into the Provisional Brigade. This was all that was left of Heckman's Star Brigade. The Provisional Brigade was then assigned to X Corps temporarily. The 9th marched 35 miles in 12 hours to reach the outskirts of Petersburg in early June. The regiment remained in the muddy trenches and bombproof dugouts until 29 July 1864. Their time in the trenches, however, was anything but dull "sharpshooting and being sharpshot" most of the time. On 29 July, the 9th moved to provide support for the "Burnside Mine" the next morning. The regiment's exact movements are not known but there was at least one casualty (see below) so they must have been within range of the city defenders. Known casualties:  After the Crater, the 9th moved back to the trenches and bombproof dugouts. On 25 August 1864 the regiment moved to Point of Rocks where they met the recently released General Heckman. He promised to have them transferred back to North Carolina. With that in mind, the regiment was ordered to North Carolina on 17 September. On 21 October 1864 the 108 surviving veterans that had not reenlisted left North Carolina for home. On 7 January 1865 Lieutenant J. Madison Drake rejoined the regiment. Drake had been captured at Drewry's Bluff but escaped by jumping from a train on its way to South Carolina.