Complex sentence: The inn was rebuilt at the end of the nineteenth century by which time the coaching era was over, but it continued to offer stabling into the twentieth century.
Split into simpler sentences: The inn was rebuilt at the end of the nineteenth century. By time the coaching era was over, but it continued to offer stabling into the twentieth century.