There are two main types of constructed wetlands: subsurface flow and surface flow constructed wetlands. The planted vegetation plays an important role in contaminant removal. The filter bed, consisting usually of sand and gravel, has an equally important role to play. Some constructed wetlands may also serve as a habitat for native and migratory wildlife, although that is not their main purpose. Subsurface flow constructed wetlands are designed to have either horizontal flow or vertical flow of water through the gravel and sand bed. Vertical flow systems have a smaller space requirement than horizontal flow systems.