(EDGE) To celebrate Pride Month, German housing website Nestpickranked the best cities for LGBTQ people to live in.
"For a city to rank strongly as an LGBT destination, we determined that it must have a vibrant gay dating scene, a lively alternative nightlife, open-minded citizens, and low levels of hate crime," the website wrote. "We also took into account the national laws affecting lesbian, gay, bisexual and transgender people, such as the right to get married or adopt children. Once calculated, the final scores reveal the top 100 Best LGBT Cities for 2017."
Nestpick updated its rankings Friday after Germany legalized same-sex marriage.
Out of 100 cities, Madrid, Spain came out on top and is the no. 1 place to live for LGBTQ people. Runner-up is Amsterdam, and rounding out the top three is Toronto.
"It's no coincidence that the world's most exciting cities have a strong LGBT community, contributing much to the dynamism, openness, and prosperity which defines locations such as Madrid, Amsterdam and Berlin," said Ömer Kücükdere, Managing Director of Nestpick.
Tel Aviv, London, Berlin, Brighton, Barcelona, New York City and San Francisco place five through 10, respectively.
Other U.S. cities to make the list include: Austin (24), Miami (27), Portland (36), Los Angeles (40), Chicago (45), Boston (52), Seattle (55) and Las Vegas (58).
Coming in last on the list is Beijing, China, which ranked lower than Belgrade, Serbia and Bratislava, Slovakia.
Click here to read the full study and find out how Nestpick broke down each category that factored into the rankings.