Abstract: Novel bis-basic esters and amides of carbazole of the formula ##SPC1##Wherein:A. each of R.sup.1 and R.sup.2 is hydrogen, (lower)alkyl, cycloalkyl of 3 to 6 ring carbon atoms, alkenyl of 3 to 6 carbon atoms having the vinyl unsaturation in other than the 1-position of the alkenyl group, or R.sup.1 and R.sup.2 taken together with the nitrogen atom to which they are attached is pyrrolidino, piperidino, N-(lower) alkylpiperazino, or morpholino;B. each A is alkylene of 2 to about 8 carbon atoms and separates its adjacent Y and amino nitrogen by an alkylene chain of at least 2 carbon atoms;C. each Y is oxygen, or N--R wherein R is hydrogen, methyl or ethyl; andD. r.sup.3 is hydrogen or (lower) primary or secondary alkyl; or a pharmaceutically acceptable acid addition salt thereof. These compounds can be used as pharmaceuticals for preventing or inhibiting a viral infection.