Complex sentence: When a Mongol contingent entered the entrance of the fortress, the Mongol forces would be slaughtered to the last man, while trapped between 4 walls.
Split into simpler sentences: When a Mongol contingent entered the entrance of the fortress. But once inside, the Mongol forces would be slaughtered to the last man, while trapped between 4 walls.