The reaction of iron powder with o-nitrocinnamic acid reduces the nitro group to a nitroso. The nitrogen then condenses with a carbon on the alkene chain with loss of a molecule of water to form a ring. Decarboxylation gives indole.