Question: When did the state with Raleigh as its capital, become a part of the U.S.?

full_context: Document 1: North Carolina: While slaveholding was slightly less concentrated than in some Southern states, according to the 1860 census, more than 330,000 people, or 33% of the population of 992,622, were enslaved African Americans. They lived and worked chiefly on plantations in the eastern Tidewater. In addition, 30,463 free people of color lived in the state. They were also concentrated in the eastern coastal plain, especially at port cities such as Wilmington and New Bern, where a variety of jobs were available. Free African Americans were allowed to vote until 1835, when the state revoked their suffrage in restrictions following the slave rebellion of 1831 led by Nat Turner. Southern slave codes criminalized willful killing of a slave in most cases.
Document 2: Roanoke Colony: The Roanoke Colony (/ ˈroʊəˌnoʊk /), also known as the Lost Colony, was the first attempt at founding a permanent English settlement in North America. It was established in 1585 on Roanoke Island in what is today's Dare County, North Carolina. The colony was sponsored by Sir Walter Raleigh, although he himself never set foot in it.
Document 3: North Carolina: On November 21, 1789, North Carolina became the twelfth state to ratify the Constitution. In 1840, it completed the state capitol building in Raleigh, still standing today. Most of North Carolina's slave owners and large plantations were located in the eastern portion of the state. Although North Carolina's plantation system was smaller and less cohesive than that of Virginia, Georgia, or South Carolina, significant numbers of planters were concentrated in the counties around the port cities of Wilmington and Edenton, as well as suburban planters around the cities of Raleigh, Charlotte, and Durham in the Piedmont. Planters owning large estates wielded significant political and socio-economic power in antebellum North Carolina, which was a slave society. They placed their interests above those of the generally non-slave-holding "yeoman" farmers of western North Carolina. In mid-century, the state's rural and commercial areas were connected by the construction of a 129-mile (208 km) wooden plank road, known as a "farmer's railroad", from Fayetteville in the east to Bethania (northwest of Winston-Salem).
Document 4: Raleigh, North Carolina: Raleigh is located in the northeast central region of North Carolina, where the Piedmont and Atlantic Coastal Plain regions meet. This area is known as the ``fall line ''because it marks the elevation inland at which waterfalls begin to appear in creeks and rivers. As a result, most of Raleigh features gently rolling hills that slope eastward toward the state's flat coastal plain. Its central Piedmont location situates Raleigh about two hours west of Atlantic Beach, North Carolina, by car and four hours east of the Great Smoky Mountains. The city is 155 miles (249 km) south of Richmond, Virginia, 263 miles (423 km) south of Washington, D.C., and 150 miles (240 km) northeast of Charlotte, North Carolina.
Document 5: North Carolina: On November 21, 1789, North Carolina became the twelfth state to ratify the Constitution. In 1840, it completed the state capitol building in Raleigh, still standing today. Most of North Carolina's slave owners and large plantations were located in the eastern portion of the state. Although North Carolina's plantation system was smaller and less cohesive than that of Virginia, Georgia, or South Carolina, significant numbers of planters were concentrated in the counties around the port cities of Wilmington and Edenton, as well as suburban planters around the cities of Raleigh, Charlotte, and Durham in the Piedmont. Planters owning large estates wielded significant political and socio - economic power in antebellum North Carolina, which was a slave society. They placed their interests above those of the generally non-slave - holding ``yeoman ''farmers of western North Carolina. In mid-century, the state's rural and commercial areas were connected by the construction of a 129 - mile (208 km) wooden plank road, known as a`` farmer's railroad'', from Fayetteville in the east to Bethania (northwest of Winston - Salem).
Document 6: North Carolina: In 1584, Elizabeth I granted a charter to Sir Walter Raleigh, for whom the state capital is named, for land in present-day North Carolina (then part of the territory of Virginia). It was the second American territory which the English attempted to colonize. Raleigh established two colonies on the coast in the late 1580s, but both failed. The fate of the "Lost Colony" of Roanoke Island remains one of the most widely debated mysteries of American history. Virginia Dare, the first English child to be born in North America, was born on Roanoke Island on August 18, 1587; Dare County is named for her.
Document 7: Raleigh, North Carolina: Raleigh is an early example in the United States of a planned city, chosen as the site of the state capital in 1788 and incorporated in 1792 as such. The city was originally laid out in a grid pattern with the North Carolina State Capitol in Union Square at the center. In the United States Civil War the city was spared from any significant battle, only falling in the closing days of the war, though it did not escape the economic hardships that plagued the rest of the American South during the Reconstruction Era. The twentieth century saw the opening of the Research Triangle Park in 1959, and with the jobs it created the region and city saw a large influx of population, making it one of the fastest growing communities in the United States by the early 21st century.
Document 8: North Carolina: State of North Carolina Flag Seal Nickname (s): Old North State; Tar Heel State Motto (s): Esse quam videri: ``To be, rather than to seem ''(official); First in Flight: First in Freedom Official language English Spoken languages As of 2000 English 90.70% Spanish 6.18% Demonym North Carolinian (official); Tar Heel (colloquial) Capital Raleigh Largest city Charlotte Largest metro Charlotte metro area Area Ranked 28th Total 53,819 sq mi (139,390 km) Width 170 miles (261 km) Length 560 miles (901 km)% water 9.5 Latitude 33 ° 50 ′ N to 36 ° 35 ′ N Longitude 75 ° 28 ′ W to 84 ° 19 ′ W Population Ranked 9th Total 10,146,788 (2016 est.) Density 208.7 / sq mi (80.6 / km) Ranked 15th Median household income $50,797 (38th) Elevation Highest point Mount Mitchell 6,684 ft (2037 m) Mean 700 ft (210 m) Lowest point Atlantic Ocean sea level Before statehood Province of North Carolina Admission to Union November 21, 1789 (12th) Governor Roy Cooper (D) Lieutenant Governor Dan Forest (R) Legislature General Assembly Upper house Senate Lower house House of Representatives U.S. Senators Richard Burr (R) Thom Tillis (R) U.S. House delegation 10 Republicans 3 Democrats (list) Time zone Eastern: UTC - 5 / - 4 ISO 3166 US - NC Abbreviations NC, N.C. Website www.nc.gov
Document 9: North Carolina: In 1860, North Carolina was a slave state, in which one-third of the population was enslaved. This was a smaller proportion than in many Southern states. The state did not vote to join the Confederacy until President Abraham Lincoln called on it to invade its sister state, South Carolina, becoming the last or second-to-last state to officially join the Confederacy. The title of "last to join the Confederacy" has been disputed; although Tennessee's informal secession on May 7, 1861, preceded North Carolina's official secession on May 20, the Tennessee legislature did not formally vote to secede until June 8, 1861.
Document 10: North Carolina: As in the rest of the former Confederacy, North Carolina had become a one-party state, dominated by the Democratic Party. Impoverished by the Civil War, the state continued with an economy based on tobacco, cotton and agriculture. Towns and cities remained few in the east. A major industrial base emerged in the late 19th century in the western counties of the Piedmont, based on cotton mills established at the fall line. Railroads were built to connect the new industrializing cities. The state was the site of the first successful controlled, powered and sustained heavier-than-air flight, by the Wright brothers, near Kitty Hawk on December 17, 1903. In the first half of the 20th century, many African Americans left the state to go North for better opportunities, in the Great Migration. Their departure changed the demographic characteristics of many areas.
Document 11: Raleigh, North Carolina: The city's location was chosen, in part, for being within 11 mi (18 km) of Isaac Hunter's Tavern, a popular tavern frequented by the state legislators. No known city or town existed previously on the chosen city site. Raleigh is one of the few cities in the United States that was planned and built specifically to serve as a state capital. Its original boundaries were formed by the downtown streets of North, East, West and South streets. The plan, a grid with two main axes meeting at a central square and an additional square in each corner, was based on Thomas Holme's 1682 plan for Philadelphia.
Document 12: Raleigh, North Carolina: Raleigh is home to numerous cultural, educational, and historic sites. The Duke Energy Center for the Performing Arts in Downtown Raleigh features three theater venues and serves as the home for the North Carolina Symphony and the Carolina Ballet. Walnut Creek Amphitheatre is a large music amphitheater located in Southeast Raleigh. Museums in Raleigh include the North Carolina Museum of Art in West Raleigh, as well as the North Carolina Museum of History and North Carolina Museum of Natural Sciences located next to each other near the State Capitol in Downtown Raleigh. Several major universities and colleges call Raleigh home, including North Carolina State University, the largest public university in the state, and Shaw University, the first historically black university in the American South and site of the foundation of the Student Nonviolent Coordinating Committee, an important civil rights organization of the 1960s. One U.S. president, Andrew Johnson, was born in Raleigh.
Document 13: Raleigh, North Carolina: Raleigh is located in the northeast central region of North Carolina, where the Piedmont and Atlantic Coastal Plain regions meet. This area is known as the "fall line" because it marks the elevation inland at which waterfalls begin to appear in creeks and rivers. As a result, most of Raleigh features gently rolling hills that slope eastward toward the state's flat coastal plain. Its central Piedmont location situates Raleigh about two hours west of Atlantic Beach, North Carolina, by car and four hours east of the Great Smoky Mountains. The city is 155 miles (249 km) south of Richmond, Virginia, 263 miles (423 km) south of Washington, D.C., and 150 miles (240 km) northeast of Charlotte, North Carolina.
Document 14: North Carolina: After 1800, cotton and tobacco became important export crops. The eastern half of the state, especially the Tidewater region, developed a slave society based on a plantation system and slave labor. Many free people of color migrated to the frontier along with their European-American neighbors, where the social system was looser. By 1810, nearly 3 percent of the free population consisted of free people of color, who numbered slightly more than 10,000. The western areas were dominated by white families, especially Scots-Irish, who operated small subsistence farms. In the early national period, the state became a center of Jeffersonian and Jacksonian democracy, with a strong Whig presence, especially in the West. After Nat Turner's slave uprising in 1831, North Carolina and other southern states reduced the rights of free blacks. In 1835 the legislature withdrew their right to vote.
Document 15: Raleigh, North Carolina: Raleigh (/ˈrɑːli/; RAH-lee) is the capital of the state of North Carolina as well as the seat of Wake County in the United States. It is the second most populous city in North Carolina, after Charlotte. Raleigh is known as the "City of Oaks" for its many oak trees, which line the streets in the heart of the city. The city covers a land area of 142.8 square miles (370 km2). The U.S. Census Bureau estimated the city's population to be 439,896 as of July 1, 2014. It is also one of the fastest-growing cities in the country. The city of Raleigh is named after Sir Walter Raleigh, who established the lost Roanoke Colony in present-day Dare County.
ground_truth: November 21, 1789
sub_queries: What state is Raleigh the capital of? Answer: North Carolina
when did North Carolina become a part of the united states Answer: November 21, 1789