The morphology of aggregates formed by an E-azobenzene derivative possessing terminal phenylenebiuret hydrogen-bonding groups can be manipulated by the solvent composition and UV irradiation.