At the end of the year, when Marshal Serrano left Madrid to take command of the northern army, General Martinez Campos, who had long been working more or less openly for the king, carried off some battalions of the central army to Sagunto, rallied to his own flag the troops sent against him, and entered Valencia in the king's name.