during the late 1800s and through the first half of this century , a maze of train tracks , bridges fashioned from boulders and tunnels through the cliffs transformed the land along the river into the mainland terminus for four of the nation 's major rail lines .