Rock formed from the accumulation of grains of solid matter deposited by air, ice or water.