A complex structure of HIV-1 protease with a hydroxyethylamine-containing inhibitor Boc-Phe-Psi[(S)-CH(OH)CH2NH]-Phe-Gln-Phe-NH2 has been determined by X-ray diffraction to 1.8 A resolution. The inhibitor is bound in the active site of the protease dimer with its hydroxyethylamine isostere participating in hydrogen bonds to the catalytic aspartates 25 and 25' and glycine 27' of the active site triads via five hydrogen bonds. The isostere amine interactions with the catalytic aspartates result in a displacement of the isostere hydroxy group in comparison with the common position known for analogous hydroxyethylamine containing inhibitors. A comparison with another inhibitor of this series shows that the change of one atom of the P2' side chain (Glu/Gln) leads to an altered ability of creating hydrogen bonds to the active site and within the inhibitor molecule. The diffraction data collected at a synchrotron radiation source enabled a detailed analysis of the complex solvation and of alternative conformations of protein side chains.