The present invention relates to a novel compound having an antiviral action, more specifically to a pyridone derivative having an HIV integrase inhibitory activity and a medicament containing the same, particularly an anti-HIV drug. The compound of the present invention has integrase inhibitory activity and / or cell growth inhibitory activity against viruses, particularly HIV and resistant viruses thereof. Therefore, it is useful for the prevention or treatment of various diseases involving integrase and viral infections (eg AIDS).本発明は、抗ウイルス作用を有する新規化合物、更に詳しくは、HIVインテグラーゼ阻害活性を有するピリドン誘導体及びそれを含有する医薬、特に抗HIV薬に関する。本発明化合物は、ウイルス、特にHIVやその耐性ウイルスに対してインテグラーゼ阻害活性および/または細胞増殖阻害活性を有する。よって、インテグラーゼが関与する各種疾患やウイルス感染症(例:エイズ)等の予防または治療に有用である。