How was Long Island Formed?

Long Island was formed by rock, sand and gravel that was all washed up together from Glaciers during the Ice Age. It is like where the glacier stopped. If your were to push dirt along with a shovel and stop. That is how the island came to be.