Brooklyn became a city in 1834, initially covering Downtown Brooklyn. Over the 19th century, it annexed surrounding areas, encompassing all of Kings County by 1895. By the 1890 U.S. Census, Brooklyn had become the country's fourth-largest city before joining New York City in 1898.