Complex sentence: Their job was to maintain the light, which rotates two white flashes every 20 seconds was then visible out to sea.
Split into simpler sentences: Their job was to maintain the light, which rotates, making two white flashes every 20 seconds. It was then visible out to sea.