The disclosure relates to phenoxyalkane and phenylalkane derivatives of formula (VI), wherein the variables are as defined in the specification, to the use thereof as medicaments and to the method for the preparation thereof. The disclosed phenoxyalkane and phenylalkane derivatives are used for preparing a medicament intended for the treatment of pathologies associated with bacterial, fungal, parasitic and viral infections.