Hamilton was born out of wedlock in Charlestown, Nevis. He was orphaned as a child and taken in by a prosperous merchant. When he reached his teens, he was sent to New York to pursue his education. He took an early role in the militia as the American Revolutionary War began.