Hamsters require a habitat in their cage that includes bedding material for nesting, a wheel for exercise, tunnels or tubes for exploration, a hiding place for security, and chew toys to maintain dental health. It's important to also provide fresh water, a food dish, and a litter box for cleanliness. Make sure to choose a cage that is spacious and well-ventilated to ensure the hamster's comfort and well-being.