Jamestown was founded in 1659 by the East India Company and is named after James, Duke of York, the future King James II of England. A fort, originally named the Castle of St John, was quickly built and, with the restoration of the monarchy in 1660, the fort was renamed James Fort, the town Jamestown and the valley James Valley. The fort and associated gun batteries dominated James Bay and were sporadically improved over the years. In January 1673 the Dutch East India Company briefly seized control of the island until the English East India Company recaptured it in May. Since then the town has been continuously inhabited under English and then British rule.