Complex sentence: In 1999, he began writing for Everybody Loves Raymond, and stayed on staff until the show left the air in 2005.
Split into simpler sentences: In 1999, he began writing for Everybody Loves Raymond. He stayed on the "Raymond" staff until the show left the air in 2005.