An aquifer is an underground layer where the material contains water. That can be less solid material like sand, gravel, clay or silt, but it can be rock as well, as long as the rock allows water to get in (that means that it is water-bearing).