Nanostructures under extremes