Bogor (, formerly Buitenzorg) is a city in the West Java province, Indonesia. Located around south of the national capital of Jakarta, Bogor is the 6th largest city in the Jakarta metropolitan area and the 14th overall nationwide. The city covers an area of 111.39 km2, and it had a population of 950,334 in the 2010 Census and 1,043,070 in the 2020 Census. The official estimate at the end of 2022 is 1,114,018. Bogor is an important economic, scientific, cultural, and tourist center, as well as a mountain resort.
During the Middle Ages, the city served as the capital of the Sunda Kingdom (Kerajaan Sunda) and was called Pakuan Pajajaran or Dayeuh Pakuan. During the Dutch colonial era, it was named Buitenzorg ("without worries" in Dutch) and served as the summer residence of the Governor-General of the Dutch East Indies.
With several hundred thousand people living on an area of about , the central part of Bogor is one of the world's most densely populated areas. The city has a presidential palace and a botanical garden (Kebun Raya Bogor) – one of the oldest and largest in the world. It bears the nickname "Rainy City" (Kota Hujan), because of frequent rain showers, even during the dry season.
The first mention of a settlement at present Bogor dates to the 5th century when the area was part of Tarumanagara, one of the earliest states in Indonesian history. After a series of defeats by the neighboring Srivijaya, Tarumanagara was transformed into the Sunda Kingdom, and in 669, the capital of Sunda was built between two parallel rivers, the Ciliwung and Cisadane. It was named Pakuan Pajajaran, in old Sundanese meaning "a place between the parallel [rivers]", and became the predecessor of the modern Bogor.
Over the next several centuries, Pakuan Pajajaran became one of the largest cities in medieval Indonesia with a population reaching 48,000. The name Pajajaran was then used for the entire kingdom, and the capital was simply called Pakuan.