<human>:  When was the US Constitution written?
<bot>: The US Constitution was written by the Constitutional Convention in Philadelphia in 1787. It was signed by the states on September 17, 1787, and was ratified by the required number of states on March 4, 1789.