Complex sentence: He stayed in the capital for several months while being treated and it was during this brief stay that he began to dream of life as an artist.
Split into simpler sentences: He stayed in the capital for several months while being treated. It was during this brief stay that he began to dream of life as an artist.