Accused of being spies, the Doctor is sentenced to imprisonment on the Moon while Jo is taken into the custody of an old enemy.