Which was written first the Constitution or the Federalist Papers?

The Constitution was written first.

The Constitution was written, signed, and sent to the states for ratification. The battle for ratification in New York was fierce, and the Papers were written to convince people that the Constitution was the way to go.