Weaning means gradually transitioning a baby or an animal from relying on their mother's milk for food to eating solid food or other substitutes.