Although an alligator could potentially take a shark in rare circumstances, the opposite is more common. Sharks primarily live in oceans, while alligators inhabit freshwater environments. Encounters between the two are rare because their habitats rarely overlap.