A common end date for the use of the pike in infantry formations is 1700, although such armies as the Prussian and Austrian had already abandoned the pike by that date. Other armies, such as the Swedish and the Russian, continued to use it for several decades afterward (the Swedes of King Charles XII in particular using it to great effect until the 1720s). During the American Revolution, pikes called "trench spears" made by local blacksmiths saw limited use until enough bayonets could be procured for general use by both Continental Army and attached militia units.
As late as Poland's Kościuszko Uprising in 1794, the pike reappeared as a child of necessity which became, for a short period, a surprisingly effective weapon on the battlefield. In this case, General Thaddeus Kosciuszko, facing a shortage of firearms and bayonets to arm landless serf [[partisan]s] recruited straight from the wheat fields, had their sickles and scythes heated and straightened out into something resembling crude "war scythes". These weaponized agricultural accouterments were then used in battle as both slicing weapons, as well as makeshift pikes. The peasant "pikemen" armed with these crude instruments played a pivotal role in securing a near impossible victory against a far larger and better equipped Russian army at the Battle of Racławice on April 4 of that year.
Improvised pikes, made from bayonets on poles, were used by escaped convicts during the Castle Hill rebellion of 1804.
Indeed, as late as the Napoleonic Wars, at the dawning of the 19th century, even the Russian militia (mostly landless peasants, like the Polish partisans before them) could be found carrying shortened pikes into battle. As the 1800s progressed, the obsolete pike would still find a use in such countries as Ireland, Russia, and China, generally in the hands of (as usual) desperate peasant rebels who did not have access to firearms. John Brown planned to arm a rebel slave army in America largely with pikes.
One attempt to resurrect the pike as a primary infantry weapon occurred during the American Civil War when the Confederate States of America planned to recruit twenty regiments of pikemen in 1862. In April 1862 it was authorised that every Confederate infantry regiment would include two companies of pikemen, a plan supported by Robert E. Lee. Many pikes were produced but were never used in battle and the plan to include pikemen in the army was abandoned.