The present invention relates a compound or a pharmaceutically acceptable salt or solvate thereof for use in inhibiting HIV capsid assembly, wherein the compound is a pyrimidine being at least substituted in two positions, preferably in 2 and 4 position or in 4 and 6 position, more preferably in 2 and 4 position.