What came first The Federalist Papers or The Constitution?

The Federalists Papers were made to help spread approval for the Constitution. While the Constitution was written first, the Papers were publihsed before the Constituion was ratified.