William Rufus Shafter (October 16, 1835 – November 12, 1906) was a Union Army officer during the American Civil War who received America's highest military decoration, the Medal of Honor, for his actions at the Battle of Fair Oaks.
Shafter also played a prominent part as a major general in the Spanish–American War.
Fort Shafter, Hawaii, is named for him, as well as the city of Shafter, California and the ghost town of Shafter, Texas.