Ages of consent are the legally set ages when a person can lawfully agree to sexual activity. These laws vary by country or state and aim to protect minors and define consent.