New 2-aminoselenophene-3-carbonitriles and 5-amino-1,3-thiazole-4-carbonitriles were made and reacted with cycloalkanones to give tetrahydros elenolo[2,3-b]quinolines, cycloalkene-fused selenolo[3,2-e]pyridines, [1,3]thiazolo[5,4- b]quinolines, thiazolo[4,5-e]pyridines and tetrahydr o[1,3]thiazolo[5,4-b]quinolines.