The preferred
habitats of
Lampropeltis getula are open areas, particularly grassland, but also chaparral, oak woodland, abandoned farms, desert, low mountains, sand, and any type of riparian zone, including swamps, canals, and streams. A study on the habitat use of the eastern kingsnake found that overall it prefers and can be found in sites with a thick layer of
leaf litter and dense shrubbery. From observations, researchers found that 79% of tracked specimen spent the majority of their time concealed under the cover of soil and leaf litter. Although commonly described as diurnal, some reports suggest that the eastern kingsnake is crepuscular or nocturnal during the hottest parts of the year. It will often retreat into rodent burrows as nocturnal retreats. It has been found that eastern kingsnake home ranges often show little-to-no overlap. Some studies show that the eastern kingsnake (
L. g. getula) is territorial, especially males, which will engage invading snakes in combat if their territory is threatened. ==Diet==