The invention provides a class of compounds as inhibitors of influenza virus replication, preparation methods thereof, pharmaceutical compositions containing these compounds, and uses of these compounds and pharmaceutical compositions thereof in the treatment of influenza.