Jefferson organized the Democratic-Republican Party to oppose the Federalist Party founded by James Madison during the formation of the First Party System .
Thomas Jefferson worked with James Madison to establish a party .