Rocks break down over time through weathering and erosion. Weathering occurs through physical, chemical, and biological processes that break rocks into smaller pieces. Physical weathering is caused by temperature changes that induce expansion and contraction as well as freezing and thawing of water. Chemical weathering alters the chemical structure of rocks as they interact with carbon dioxide, oxygen, and acid in rainwater. Running water, wind, and glacial ice are the main agents of erosion that transport weathered materials away.