Palladium-catalyzed cyclization of allylsilanes with nucleophilic displacement of the silyl group.