Complex sentence: The first earthworks were erected on the Western Heights at Dover, and later expanded as a defence against Napoleon's planned invasion of the United Kingdom soon afterwards.
Split into simpler sentences: The first earthworks were erected on the Western Heights at Dover. These were later expanded as a defence against Napoleon's planned invasion of the United Kingdom soon afterwards.