In 2010, Brasilia was ranked the fourth-most populous city in Brazil after São Paulo, Rio de Janeiro, and Salvador. In 2010, the city had 474,871 opposite-sex couples and 1,241 same-sex couples. The population of Brasilia was 52.2% female and 47.8% male.