Ordinance No. 0417-12 of 2012, also known as the "Anti-Discriminatory Ordinance of Davao City", prohibits discrimination based on sex, gender identity, sexual orientation, race, color, descent, nationality, ethnic or religious affiliation or beliefs. The ordinance enumerates seven ways discrimination may be committed against people applying for jobs, buying products/services, seeking school enrollment, or entering establishments generally open to the public. It defines key terms like gender identity and sexual orientation. The ordinance references provisions in the Philippine Constitution promoting social justice, human dignity, and equal protection under the law.