Obesity is a medical condition that occurs when a person carries excess weight or body fat that might affect their health. A doctor will usually suggest that a person has obesity if they have a high body mass index.