Question: were there political parties when the constitution was written

Answer: No, Two parties soon developed, one in opposition, the Anti-Federalists, and one in support, the Federalists, of the Constitution; and the Constitution was debated, criticized, and expounded upon clause by clause. Hamilton, Madison, and Jay, under the name of Publius, wrote a series of commentaries, now known as The Federalist Papers, in support of ratification in the state of New York, at that time a hotbed of anti-Federalism. These commentaries on the Constitution, written during the struggle for ratification, have been frequently cited by the Supreme Court as an authoritative contemporary interpretation of the meaning of its provisions. The dispute over additional powers for the central government was close, and in some states ratification was effected only after a bitter struggle in the state convention itself.