The Scottish Workers Republican Party (SWRP) was formed by the Scottish Marxist activist John Maclean (1879–1923) in 1923. It advocated the political doctrine of communism, whilst also supporting Scottish independence. This dual communist-nationalist doctrine was heavily influenced by the thinking of James Connolly who similarly believed in socialism and independence for Ireland and had set up his Irish Socialist Republican Party in 1896.