Following a month of marching and countermarching in central Virginia by Cornwallis and Lafayette, Cornwallis in late June moved to Williamsburg, where he received orders to move to Portsmouth and send some of his army to New York City. Lafayette followed Cornwallis fairly closely, emboldened by the arrival of reinforcements to consider making attacks on the British force. On July 4, Cornwallis departed Williamsburg for Jamestown, planning to cross the James River en route to Portsmouth. Lafayette believed he could stage an attack on Cornwallis's rear guard during the crossing.