The treatment of 6,8-dialkoxy-1,3,7-triazapyrenes with sodium acylamides in DMSO at room temperature resulted in ipso substitution of one alkoxy group with amide group, giving 8-acylamino-6-alkoxy-1,3,7-triazapyrenes. The reaction at 65-70°C proceeded as a tandem S N Ar ipso -S N 2 process, leading to the formation of 8-acylamino-6-oxo-6,7-dihydro-1,3,7-triazapyrenes.