Jefferson and James Madison organized the Democratic-Republican Party to oppose the Federalist Party during the formation of the First Party System .
Thomas Jefferson worked with James Madison for the Democratic-Republican Party .