How Did Firefighting Develop
Firefighting began to be a focus only with the rise of very large cities such as Rome. Earlier cities, such as those in Mesopotamia or the Indus, likely developed ad hoc firefighting departments and respondent to events. As with other institutions, however, the history of firefighting is complicated and influenced by major technical and social change that occurred in different centuries.
Early History
Early fighting developed in the early urban societies of Egypt, Mesopotamia, and the Indus. Very likely, however, these were not dedicated fire departments but rather as volunteer or paid individuals who would be responsible in assembling a crew and extinguishing a fire in the city. Few archaeological remains have attested to such firefighters, but laws, such as those from Hammurabi's law code, indicate they existed. There is a law that discussed a firefighter who stole from a house he was putting out a fire from would be punished by death by being thrown into the fire. The law makes it clear though that it is a volunteer. This does not mean there were no paid firefighters but it could mean volunteers may have volunteered because fires gave opportunity for theft.
We don't know the equipment used by the earliest firefighters, but likely it consisted of buckets, wells to extract water, and perhaps carts to move water to where the fire was located. The first documented fire pump dates to the 2nd century BCE, where a pump invented by Ctesibius of Alexandria may have been used in putting out fires in the city of Alexandria.
In the Roman period, the city of Rome grew rapidly and began to have problems with major fires. Initially, fires may have been only extinguished in places where homeowners or property owners could pay the price. Negotiation of the price may have occurred while the fire was burning, although evidence for this is not entirely certain. The first dedicated city-based fire department was developed, perhaps ironically, by emperor Nero, who was blamed for the great fire of Rome. The firefighting capabilities consisted of men assigned as Vigiles, who also served as Rome's police force, that had access to buckets, pumps, and even equipment to tear down buildings to make it easier to stop a fire from spreading. The firefighting force patrolled the streets of Rome and the fact they were responsible for policing and firefighting indicates that the Vigiles were essentially a protection force.
China, Parthian, and Sasanians likely developed similar types of dedicated groups who would be responsible to respond to events such as a fire in the city. Similar to the Roman Vigiles, they may have patrolled the streets as watchmen and simply responded to fire events.
Medieval History and Early Modern History
Technical and social changes for much of the Medieval period were limited in relation to firefighting. This meant that the concept of using watchmen who would respond and call other watchmen or volunteers to then respond to the fire largely persisted in the towns and cities of Europe and other regions. Pumps and wagons were sometimes used, but technically these were not much different from ancient periods.