How is a beach made?

Ocean water breaks rocks into sediments