Tanks were invented during World War I and were designed to break through entrenched positions—trench lines that had left the battlefield deadlocked. Before tanks came along, nothing could reliably fill that role.
In a broader strategic sense, tanks also took on some of the functions that cavalry had traditionally served. Although the earliest tanks were slow, they quickly became faster than a soldier on foot. That blend of speed and firepower let them punch a hole in enemy defenses and keep pushing forward, changing the face of modern warfare.