Units of musketeers were originally developed to support units of pikemen. As firearms became more effective and widely used, the composition of these pike-and-musket units changed, with pikemen eventually becoming support units to the musketeers, particularly against cavalry. The last pike regiments were dissolved by the 1720s, as pikes were superseded by the invention of the bayonet. This converted the musket into a pike for those situations where it might still be useful, such as following up volleys with a charge, crowd control, or defensive formations.