At this point, the Carthaginian senate reinstated Hanno and forced Hamilcar to share command. The Punic generals pursued Matho's army and won several small-scale engagements. After mustering their forces, a decisive battle was fought probably near the town of Leptis Minor. The Carthaginians destroyed the rebel army, after which the Libyan towns submitted to Carthage. When Utica and Hippo Acra held out, Hanno and Hamilcar besieged them, eventually receiving their surrender on terms. By the winter of 238 BC, the Mercenary revolt was over. Hanno and Hamilcar unleashed reprisals against the Numidian tribes that had sided with the rebels, and the generals probably extended Carthaginian territory in Africa at the same time. Carthage now began to fit out an expedition to recover Sardinia, with Hamilcar commanding Punic forces.