On the evening of July 14, the advance guard (the cavalry's Company C) was about 4 miles east of Raleigh Court House (also known as Beckley, West Virginia) when it was ambushed while crossing Piney Creek.