After the Treaty of Allahabad, the East India Company was granted "Diwani" rights (the right to collect taxes), in 1765, in the eastern province of Bengal-Bihar-Odisha. In 1772, Kolkata became the capital of East India Company's territories, and in 1793, the English took full control of the city and the province. Development of Kolkata's infrastructure started and in the early 19th century, the marshes surrounding the city were drained. In the 19th century, Kolkata was the epicentre of the epoch-changing socio-cultural movement, the Bengal Renaissance. The 20th century unfolded historical events in Kolkata – the Swadeshi movement, the first partition of Bengal along communal lines, shifting of the national capital from Kolkata to Delhi in 1911 – and Kolkata emerged as an important hub of the independence movement. With the experience and memories of the Bengal famine of 1943, the Great Calcutta Killings, the final partition of Bengal, and independence of the country, Kolkata moved on to a new era of challenges, with millions of refugees pouring in from neighbouring East Pakistan (later Bangladesh).