Complex sentence: Although it was a mixed-sex school during the day, he could not stay the night at the boarding school with his sisters, but had to sleep at the house of a friend of his father.
Split into simpler sentences: Although it was a mixed-sex school during the day, he could not stay the night at the boarding school with his sisters. He would have to sleep at the house of a friend of his father.