On entering the territory in 1884, Spanish forces were immediately challenged by stiff resistance from the indigenous Sahrawi tribes, Saharan Arabs who lived in many oases and coastal villages. The indigenous people worked mainly in fishing and camel herding, and speak the Hassaniya language, a Bedouin Arabic dialect. A rebellion in 1904 was led by the powerful Smara-based "marabout", Shaykh Ma al-'Aynayn, was put down by France in 1910, which ruled neighbouring Algeria. This was followed by a wave of uprisings under Ma al-Aynayn's sons, grandsons and other political leaders.