qnli question: What city became the capital of North Carolina in 1766? sentence: Officially established in 1792 as both county seat and state capital, the city was named after Sir Walter Raleigh, sponsor of Roanoke, the "lost colony" on Roanoke Island.