Which president served two non-consecutive terms during the late 1800s?

The president who served two non-consecutive terms during the late 1800s was Grover Cleveland. He served as the 22nd president from 1885 to 1889, and then served as the 24th president from 1893 to 1897.