The 13th United States Congress was a meeting of the legislative branch of the United States federal government, consisting of the United States Senate and the United States House of Representatives. It met in Washington, D.C. from March 4, 1813, to March 4, 1815, during the fifth and sixth years of James Madison's presidency. The apportionment of seats in the House of Representatives was based on the 1810 United States census. Both chambers had a Democratic-Republican majority. The first two sessions were held at the Capitol building while the third, convened after the Burning of Washington, took place in the First Patent Building.