Albany was a point of contention during both the French and Indian and Revolutionary wars, and the New York State Legislature met there in 1780 after British occupation ended. In 1797 it was designated the state capital.