Refers to the quality of being ugly.
La fealdad de la situación era evidente para todos los presentes.
The ugliness of the situation was evident to everyone present.
La fealdad del edificio contrastaba con la belleza del paisaje circundante.
The ugliness of the building contrasted with the beauty of the surrounding landscape.