Water flows into a crack where it sits and over night freezes. Because ice expands when frozen it deepens the crack in the rock. During the day it thaws and refreezes the next night. This process continues and the crack deepens until the rock splits.
Chemical weathering occurs when particles in the rock react with other agents such as air creating rust or water and carbon dioxide creating carbonic acid.