Complex sentence: He was the superintendent of the United States Military Academy from 1871 to 1876, and retired, in 1897, with the rank of major general in the Regular Army.
Split into simpler sentences: He was the superintendent of the United States Military Academy from 1871 to 1876. He retired, in 1897, with the rank of major general in the Regular Army.