The composition of sand varies, depnding on the local rock sources and conditions, but the most common constituent of sand in inland continental settings and non-tropical coastal settings is silica (silicon dioxide, or SiO2), usually in the form of quartz. But mostly you can just say for an answer it comes from rocks.