Foraging tactics of predators generally include two major modes, active searching and ambushing. A colubrid snake, Lycodon semicarinatus, is a typical example of a predator, which uses both tactics to forage on sea turtles on islands of the Kerama Group in the Central Ryukyu Archipelago, Japan. To investigate factors that determine the foraging mode of this snake, we conducted a four-year field survey on its foraging behaviour on sea turtles on another island, Okinawa Island. We found that the snake performs only active searching at our study site. Snakes visited a small area exactly above the nest of sea turtles and attempted to burrow a tunnel to feed on eggs and hatchlings in the sand. Tunnels leading from the surface of the beach to the inside of the nest were formed only by large snakes. Many other snakes used the already made tunnels to capture eggs and hatchlings in the nest. When the snakes caught a hatchling, they brought the hatchling away into the nearby bush area without swallowing it above the nest (taking-away behaviour). When snakes failed to find food on a nest, they terminated the intensive search above the nest in approximately 5 minutes irrespective of snake body size, season, and the condition of the nest. Subsequently, they left the nest and resumed extensive searching for other nests. Our findings showed that L. semicarinatus has a different foraging strategy depending on populations. Two environmental traits, diversity of available prey animals other than sea turtles and characteristics of sand that beaches consist of, were considered as factors that might cause the difference in the foraging strategy. The fine sand of our study site enables snakes to form a sturdy tunnel in nests. We presume that such an environment facilitates the use of active searching by the snakes to find the nest with tunnels suitable for exploitation. The taking-away behaviour may be effective to reduce excessive contact with other conspecifics under the situation that the nest with tunnels attracts many visitors. Furthermore, the observation that the snake left the nest site after a consistent duration of unprofitable searching supports the giving-up time rule, which has been predicted by a theoretical model concerning the optimal time for predators to leave a patch.