Question: when did richmond became the capital of virginia
Answer: It was incorporated in 1742 , and has been an independent city since 1871 .