How does water cause weathering of a brick?

it erodes the brick leaving small holes in the brick

how does water cause weathering of a brick?