Complex sentence: It remained in use until 1877 when it was discovered that the rocks upon which it stood were becoming eroded: each time a large wave hit, the lighthouse shook from side to side.
Split into simpler sentences: It remained in use until 1877 when it was discovered that rocks upon which it stood were becoming eroded. Each time a large wave hit, the lighthouse shook from side to side.