Alligators are primarily found in freshwater habitats such as swamps, marshes, and wetlands. These areas provide them with the ideal conditions for hunting and nesting. Swamps, in particular, offer a combination of water, vegetation, and prey that make them well-suited for alligator survival. While alligators may occasionally venture into other bodies of water, such as rivers or lakes, their main habitat is indeed a swamp.