After the formation of clear political parties in the Lords and Commons, the first national unity government in the country was the Ministry of All the Talents that led the United Kingdom for about a year after the death of William Pitt the Younger in 1806, during the Napoleonic Wars. This ministry had cross-party support, ranging from very socially conservative Tories, and the broad range of Whigs (among them Charles James Fox and his 'Foxites'), selected for their combined broad political support in both Houses of Parliament and known capabilities in a time of crisis. However, the ministry was frustrated in its attempts to make peace with France, and despite one major legislative success (banning the slave trade in Britain), it fell apart in 1807 over the question of Catholic Emancipation and was replaced following a general election by a Tory ministry led by the Duke of Portland.