Tony Blair
Anthony Charles Lynton Blair (born 6 May 1953) is a British politician who served as Prime Minister of the United Kingdom from 1997 to 2007 and Leader of the Labour Party from 1994 to 2007. After his resignation, he was appointed Special Envoy of the Quartet on the Middle East, an office which he held until 2015. He currently serves as the Executive Chairman of the Tony Blair Institute for Global Change. 
Tony Blair
Blair was born in Edinburgh; his father, Leo, was a barrister and academic. After attending the independent school Fettes College, he studied law at St John's College, Oxford and became a barrister. He became involved in Labour politics and was elected Member of Parliament for Sedgefield in 1983. He supported moving the party to the centre of British politics in an attempt to help it win power (it had been out of government since 1979). He was appointed to the party's frontbench in 1988 and became Shadow Home Secretary in 1992. He became Leader of the Opposition on his election as Labour Party leader in 1994, following the sudden death of his predecessor, John Smith. Under Blair, the party used the phrase "New Labour" to distance itself from previous Labour politics and the traditional idea of socialism. He declared support for the Third Way—politics that recognised individuals as socially interdependent, advocating social justice, cohesion, the equal worth of each citizen, and equal opportunity. Despite opposition from Labour's left wing, he removed the party's formal commitment to the nationalisation of the economy, weakened trade union influence in the party, and committed to the free market and the European Union. In 1997, the Labour Party won its largest landslide general election victory in its history. Blair became the country's youngest leader since 1812 and remains the party's longest-serving occupant of the office. Labour won two more general elections under his leadership—in 2001, in which it won another landslide victory (albeit with the lowest turnout since 1918), and in 2005, with a greatly reduced majority. He resigned as Prime Minister and Leader of the Labour Party in 2007 and was succeeded by Gordon Brown, who had been his Chancellor of the Exchequer since 1997. 
Trade unions in the United Kingdom
Trade unions in the United Kingdom were first decriminalised under the recommendation of a Royal Commission in 1867, which agreed that the establishment of the organisations was to the advantage of both employers and employees. Legalised in 1871, the Trade Union Movement sought to reform socio-economic conditions for working men in British industries, and the trade unions' search for this led to the creation of a Labour Representation Committee which effectively formed the basis for today's Labour Party, which still has extensive links with the Trade Union Movement in Britain. Margaret Thatcher's governments weakened the powers of the unions in the 1980s, in particular by making it more difficult to strike legally, and some within the British trades union movement criticised Tony Blair's Labour government for not reversing some of Thatcher's changes. Most British unions are members of the TUC, the Trades Union Congress (founded in 1867), or where appropriate, the Scottish Trades Union Congress or the Irish Congress of Trade Unions, which are the country's principal national trade union centres.

Question: What year were trade unions legalized in Tony Blair's country?
Answer: 1871