Behavior is everything an organism does in response to stimuli from both the external environment and internal bodily states. It includes innate behaviors that are genetically determined and critical for survival, such as feeding, grooming, and reproduction, as well as learned behaviors influenced by environmental factors. The scientific study of animal behavior is called ethology and focuses on understanding behavior in natural habitats and social contexts.