In 1868, Gladstone became prime minister for the first time. Many reforms were passed during his first ministry, including the disestablishment of the Church of Ireland and the introduction of secret voting. After electoral defeat in 1874, Gladstone resigned as leader of the Liberal Party. From 1876 he began a comeback based on opposition to the Ottoman Empire reaction to the Bulgarian April Uprising. His Midlothian Campaign of 1879–80 was an early example of many modern political campaigning techniques. After the 1880 general election, Gladstone formed his second ministry (1880–1885), which saw the passage of the Third Reform Act as well as crises in Egypt (culminating in the Fall of Khartoum) and Ireland, where his government passed repressive measures but also improved the legal rights of Irish tenant farmers.