Carbenes undergo both intermolecular and intramolecular insertion reactions.
Here, the carbene intermediate inserts into a carbon-hydrogen bond to form the carbon-carbon bond needed to close the cyclopentene ring.