Sheridan's objectives for his raid were to destroy stretches of the Virginia Central Railroad, provide a diversion that would occupy Confederate cavalry from understanding Grant's planned crossing of the James River, and to link up with the army of Maj. Gen. David Hunter at Charlottesville. Hampton's cavalry beat Sheridan to the railroad at Trevilian Station and on June 11 they fought to a standstill. Brig. Gen. George A. Custer entered the Confederate rear area and captured Hampton's supply train, but soon became surrounded and fought desperately to avoid destruction.