As the Ottoman Empire declined in the late 18th century, Shkodra became the centre of a semi-independent pashalik (region governed by a pasha, an Ottoman high official), which led to a blossoming of commerce and crafts. In 1913 Montenegro attempted to annex Shkodra (it succeeded in taking Ulcinj), a move not approved of by the international community, and the town changed hands often during WWI. Badly damaged by an earthquake in 1979, Shkodra was subsequently rebuilt in a sympathetic style. Shkodra played a key role in the democratic movement that led to the overthrow of the communist regime in the early 1990s. Today it's Albania's fifth-largest town and the mainstay of the economy is the textile industry and in particular the manufacture of lingerie.