A Florida man was flown to a hospital after an alligator attacked him on his early morning walk.

Deputies with the Collier County Sheriff’s Office responded to a country club community after the nearly 7-foot alligator attacked the man.

The man was walking a little after 5 a.m. when the alligator came up and bit him in the leg, deputies said. The extent of the injury was not immediately known.

As one deputy aided the man, a second deputy spotted the gator heading toward a nearby lake. The deputy kept eyes on the gator and provided its location to a trapper. The trapper safely apprehended the reptile and removed it from the community.

Authorities warned residents to be vigilant around bodies of water and vegetation where an alligator could have a nest during mating season.

Alligators are most active between dusk and dawn, deputies said.

Where are alligators in the U.S.?

Alligators are found throughout the Southeast and wetlands, with their range stretching as far west as eastern Texas, and as far east as coastal North Carolina, according to The National Wildlife Federation.

The creature is most abundant in Louisiana and Florida, with each state having a population of over 1 million alligators.

“Anywhere there is standing water, an alligator might be found,” The Florida Fish and Wildlife Conservation Commission said in a statement to USA TODAY.

How to prevent an alligator attack

The University of Florida shares these tips: