Tensions rise in the castle as the Doctor works to thwart the alien's technology, while Sarah Jane inspires the oppressed villagers to resist.