Complex sentence: Many of them had periods of hard times and experienced discrimination, for example when in 1902 the mining unions decided to boycott their businesses.
Split into simpler sentences: Many of them had periods of hard times and experienced discrimination. For example, in 1902 the mining unions decided to boycott their businesses.