The early history of Gyeongju is closely tied to that of the Silla kingdom, of which it was the capital. Gyeongju first enters non-Korean records as Saro-guk, during the Samhan period in the early Common Era. Korean records, probably based on the dynastic chronicles of Silla, record that Saro-guk was established in 57 BCE, when six small villages in the Gyeongju area united under Bak Hyeokgeose. As the kingdom expanded, it changed its name to Silla. During the Silla period, the city was called "Seorabeol" (lit. Capital), "Gyerim" (lit. Rooster's forest) or "Geumseong" (lit. City of Gold).