The Loja uprising was a short-lived insurrection in Loja, Andalucia in 1861 that is considered one of the earliest socialist uprisings in Spain.[1]