Provided are novel compounds having antiviral activity, particularly HIV replication inhibitory activity, and medicaments containing the same, particularly anti-HIV drugs. Wherein ring A is a substituted or unsubstituted carbocycle or substituted or unsubstituted heterocycle; R1 is substituted or unsubstituted alkyl, etc .; R2 is substituted or unsubstituted alkyloxy, etc .; n is 1 Or 2; R3 is a substituted or unsubstituted carbocyclic group or substituted or unsubstituted heterocyclic group; R4 is a hydrogen atom or the like; R6 is a substituted or unsubstituted alkyl or the like.抗ウイルス作用、特にHIV複製阻害活性を有する新規化合物およびそれを含有する医薬、特に抗HIV薬を提供する。化1(式中、環Aは置換若しくは非置換の炭素環または置換若しくは非置換の複素環;R1は置換若しくは非置換のアルキル等;R2は置換若しくは非置換のアルキルオキシ等;nは、1または2;R3は置換若しくは非置換の炭素環式基または置換若しくは非置換の複素環式基;R4は水素原子等;R6は置換若しくは非置換のアルキル等)で示される化合物。