Condensation of 4-(tert-butyldimethylsilyloxymethyl)pyridine (I) with ethyl 4-fluorobenzoate (II) using NaHMDS gave the silyloxyketone (III). Then, cyclization of (III) with 2,6-diamino-4-methoxypyridine (IV) in the presence of H2SO4 in refluxing dimethoxyethane provided the target pyrrolopyridine.