Template-fixed β-hairpin peptidomimetics of the general formulawherein Z is a template-fixed chain of 12 α-amino acid residues which, depending on their positions in the chain (counted starting from the N-terminal amino acid), are Gly, NMeGly, Pro or Pip, or of certain types which, as the remaining symbols in the above formula, are defined in the description and the claims, and salts thereof, have CXCR4 antagonizing properties and can be used for preventing HIV infections in healthy individuals or for slowing and halting viral progression in infected patients or where cancer is mediated or resulting from CXCR4 receptor activity or where immunological diseases are mediated or resulting from CXCR4 receptor activity or for treating immuno suppression or during apheresis collections of peripheral blood stem cells.These β-hairpin peptidomimetics can be manufactured by a process which is based on a mixed solid- and solution phase synthetic strategy.