Complex sentence: After this meal they could sit outdoors in the fenced-in pen of by until 18:30, after which the guard locked them in their section for the night.
Split into simpler sentences: After this meal they could sit outdoors in the fenced-in pen of by until 18:30. Then the guard locked them in their section for the night.