London is one of the worst cities in the UK for young families, according to data compiled by Moneysupermarket.
Read more: Londoners are torn over the Tulip skyscraper
The capital narrowly avoided last place, with Bristol rated the worst UK city for families owing to a decline in good schools and a rise in burglary.
London had the highest average salary and was far ahead of the other 35 cities measured by the comparison website for its number of local parks.
Bath took the top spot for a second year in a row in the ranking that compared 35 cities based on factors such as schooling, house prices, job opportunities and access to parks.
The high number of schools serving the population rated outstanding by Ofsted, and a good number of job opportunities kept the Somerset city out in front.
Top five UK cities for families:
Other high performers included Newcastle, which came in third place and with the highest number of outstanding-rated schools per head of the population.
Manchester also fared well, with good schools and lower house prices combining with a high number of parks to put the city at number five on the list.
Worst five UK cities for families: